diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index 114bfcb6f8fb..889797ca622f 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++;