summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2023-01-07 15:12:05 +0100
committerGitHub <noreply@github.com>2023-01-07 15:12:05 +0100
commitfcba87e696d58912838d8a4a6987b10efa28e78f (patch)
tree8bb0f55ff3c3042f41a3a14c8e143dc2614ae72f /platform
parentd642274f75fb8ca6d3b9d4c314269e6f559051c7 (diff)
parent9dc4f4096c90b025cd9cab41a2fa9e36bab4ef01 (diff)
Merge pull request #71026 from bruvzg/fix_prim_detect
[Windows] Fix primary screen detection.
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/display_server_windows.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index 114bfcb6f8..889797ca62 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -348,11 +348,9 @@ typedef struct {
static BOOL CALLBACK _MonitorEnumProcPrim(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData) {
EnumScreenData *data = (EnumScreenData *)dwData;
- if (data->monitor == hMonitor) {
- if ((lprcMonitor->left == 0) && (lprcMonitor->top == 0)) {
- data->screen = data->count;
- return FALSE;
- }
+ if ((lprcMonitor->left == 0) && (lprcMonitor->top == 0)) {
+ data->screen = data->count;
+ return FALSE;
}
data->count++;