1
0
mirror of https://github.com/godotengine/godot synced 2024-07-08 22:00:43 +00:00

Merge pull request #71026 from bruvzg/fix_prim_detect

[Windows] Fix primary screen detection.
This commit is contained in:
Rémi Verschelde 2023-01-07 15:12:05 +01:00 committed by GitHub
commit fcba87e696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++;