mirror of
https://github.com/godotengine/godot
synced 2024-10-14 19:52:54 +00:00
[Windows] Fix primary screen detection.
This commit is contained in:
parent
d642274f75
commit
9dc4f4096c
|
@ -348,11 +348,9 @@ 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++;
|
||||||
|
|
Loading…
Reference in a new issue