52c0090c
by Rémi Bernon at 2025-10-20T20:49:35+02:00
win32u: Use floats for map_monitor_rect computation.
Avoiding rounding errors caused by dpi_from and dpi * 2 denominators.
It's possible to tweak the operations to move the division up to the
end but it increases the risk of overflows. Let's just use floats for
this.
Based on a patch from Conor McCarthy.