[Windows] Fix primary screen detection.

This commit is contained in:
bruvzg 2023-01-07 15:41:06 +02:00
parent d642274f75
commit 9dc4f4096c

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