Read-only mirror of https://gitlab.gnome.org/GNOME/mutter
8a32b42172
Due to rounding issues, we can't assume a floating point calculation will end up on an integer, even if we got the factor from the reverse calculation. Thus, to avoid casting away values like N.999... to N, when they should really be N+1, round the resulting floating point calculation before casting it to int. This fixes an issue where using the scale ~1.739 on a 1920x1080 mode resulted in error when setting the mode, as the calculated size of the framebuffer was only 1919x1080. https://bugzilla.gnome.org/show_bug.cgi?id=786918 |
||
---|---|---|
clutter | ||
cogl | ||
data | ||
doc | ||
po | ||
src | ||
tools | ||
.gitignore | ||
autogen.sh | ||
configure.ac | ||
COPYING | ||
Makefile.am | ||
mutter.doap | ||
NEWS |