summaryrefslogtreecommitdiff
path: root/vdagent/desktop_layout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vdagent/desktop_layout.cpp')
-rw-r--r--vdagent/desktop_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
index b5295c1..6e255fc 100644
--- a/vdagent/desktop_layout.cpp
+++ b/vdagent/desktop_layout.cpp
@@ -263,7 +263,7 @@ bool DesktopLayout::init_dev_mode(LPCTSTR dev_name, DEVMODE* dev_mode, DisplayMo
best = i;
}
}
- if (best == -1 || !EnumDisplaySettings(dev_name, best, dev_mode)) {
+ if (best == (DWORD)-1 || !EnumDisplaySettings(dev_name, best, dev_mode)) {
return false;
}
dev_mode->dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;