mirror of
https://github.com/godotengine/godot
synced 2024-10-14 19:47:56 +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) {
|
||||
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++;
|
||||
|
|
Loading…
Reference in a new issue