7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-07 21:55:32 +00:00

GAL: update depth to avoid overflow with a higher VIEW_MAX_LAYERS

This commit is contained in:
John Beard 2024-12-30 18:49:40 +08:00
parent 858d28b13f
commit 3219e87b3a

View File

@ -236,8 +236,8 @@ VECTOR2D GAL::GetGridPoint( const VECTOR2D& aPoint ) const
#endif
}
const int GAL::MIN_DEPTH = -1024;
const int GAL::MAX_DEPTH = 1023;
const int GAL::MIN_DEPTH = -2048;
const int GAL::MAX_DEPTH = 2047;
const int GAL::GRID_DEPTH = MAX_DEPTH - 1;