You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #71026 from bruvzg/fix_prim_detect
[Windows] Fix primary screen detection.
This commit is contained in:
@@ -348,12 +348,10 @@ typedef struct {
|
|||||||
|
|
||||||
static BOOL CALLBACK _MonitorEnumProcPrim(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData) {
|
static BOOL CALLBACK _MonitorEnumProcPrim(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData) {
|
||||||
EnumScreenData *data = (EnumScreenData *)dwData;
|
EnumScreenData *data = (EnumScreenData *)dwData;
|
||||||
if (data->monitor == hMonitor) {
|
|
||||||
if ((lprcMonitor->left == 0) && (lprcMonitor->top == 0)) {
|
if ((lprcMonitor->left == 0) && (lprcMonitor->top == 0)) {
|
||||||
data->screen = data->count;
|
data->screen = data->count;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
data->count++;
|
data->count++;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user