• Zhiyi Zhang's avatar
    win32u: Fix a possible condition that makes EnumDisplayMonitors() not reporting any monitors. · 6505403e
    Zhiyi Zhang authored
    When there are two monitors and they are mirrored, both of them are considered primary. When the
    first primary monitor happens to be a clone, EnumDisplayMonitors() ends up not reporting any
    monitors because should_enumerate_monitor() returns FALSE and we break out the loop to enumerate
    primary monitors after that.
    
    This is a regression from b59619d2 and my review comments. My indent was to break out of the loop
    after finding the *master* primary monitor, not cloned primary monitors, to avoid unnecessary
    iterations. However, the primary monitor count is small and it's cleaner this way so let's break
    when should_enumerate_monitor() returns TRUE.
    6505403e
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE.md Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...