• Benjamin Berg's avatar
    display: Correctly round scaled monitor size · 2077e906
    Benjamin Berg authored
    We were converting the floating point numbers to integers using a cast,
    which causes them to be always rounded down. The result is that a
    monitor may be too small by a pixel, creating broken configurations.
    
    Also fix the same issue when calculating whether a scale should be
    supported.
    
    See mutter#412
    
    (cherry picked from commit 4db431d7)
    2077e906
Name
Last commit
Last update
.gitlab/issue_templates Loading commit data...
build-aux Loading commit data...
data/icons Loading commit data...
docs Loading commit data...
gettext/its Loading commit data...
man Loading commit data...
panels Loading commit data...
po Loading commit data...
search-provider Loading commit data...
shell Loading commit data...
subprojects Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
gnome-control-center.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...