summaryrefslogtreecommitdiff
path: root/yapp/message_pump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yapp/message_pump.cpp')
-rw-r--r--yapp/message_pump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yapp/message_pump.cpp b/yapp/message_pump.cpp
index 19d36e6..535f8fc 100644
--- a/yapp/message_pump.cpp
+++ b/yapp/message_pump.cpp
@@ -16,8 +16,8 @@ HANDLE hMPEvent;
// from popups, popup2 implementation, slightly modified
// return true if there is a full-screen application (e.g. game) running
bool is_full_screen() {
- int w = GetSystemMetrics(SM_CXSCREEN);
- int h = GetSystemMetrics(SM_CYSCREEN);
+ int w = GetSystemMetrics(SM_CXFULLSCREEN);
+ int h = GetSystemMetrics(SM_CYFULLSCREEN);
// use ClientRect instead of WindowRect so that it works normally for maximized applications - thx Nikto
RECT ClientRect;
HWND hWnd = 0;