mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-30 01:15:33 -04:00
ParsePercentagePolygon clamped to [0, width] / [0, height], so a new zone created at 100% produced pixel coords equal to the monitor dimensions. The rasterizer requires hi_x < width and hi_y < height, so the runtime then logged warnings like "polygon hi_x (1920) >= image width (1920), clamping". Clamp to width-1 / height-1 instead. Updates existing tests that encoded the previous behavior.