diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-13 04:24:00 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-13 04:24:00 +0000 |
commit | 94dbef8e955066aef4c9feeba41ab7dfba03f8db (patch) | |
tree | b1bea4ee6e483e58f785f1d2abc21588bd21db9a /yapp/message_pump.cpp | |
parent | 65f1ce5be10b05a1e107025ba9ce544ae5f42208 (diff) |
check window size against SystemMetrics(SM_C?FULLSCREEN) instead of SM_C?SCREEN
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@279 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/message_pump.cpp')
-rw-r--r-- | yapp/message_pump.cpp | 4 |
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;
|