Fix native resolution detection on high DPI wayland systems
This commit is contained in:
parent
aa7d5fa924
commit
b0804ce048
4 changed files with 24 additions and 9 deletions
|
|
@ -221,7 +221,7 @@ void SystemProperties::refreshDisplaysInternal()
|
|||
SDL_GetError());
|
||||
}
|
||||
|
||||
if (StreamUtils::getRealDesktopMode(displayIndex, &desktopMode)) {
|
||||
if (StreamUtils::getNativeDesktopMode(displayIndex, &desktopMode)) {
|
||||
if (desktopMode.w <= 8192 && desktopMode.h <= 8192) {
|
||||
monitorNativeResolutions.insert(displayIndex, QRect(0, 0, desktopMode.w, desktopMode.h));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue