From 94dbef8e955066aef4c9feeba41ab7dfba03f8db Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 13 Jul 2007 04:24:00 +0000 Subject: 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 --- yapp/message_pump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yapp/message_pump.cpp') 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; -- cgit v1.2.3