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 | |
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
-rw-r--r-- | yapp/YAPP.mdsp | 22 | ||||
-rw-r--r-- | yapp/message_pump.cpp | 4 | ||||
-rw-r--r-- | yapp/version.h | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/yapp/YAPP.mdsp b/yapp/YAPP.mdsp index 6267bd4..c46106d 100644 --- a/yapp/YAPP.mdsp +++ b/yapp/YAPP.mdsp @@ -110,15 +110,15 @@ extraResourceOptions= 1=popups2.rc
2=version.rc
[History]
-version.h,150
-..\..\include\newpluginapi.h,1183
-..\..\include\m_plugins.h,0
-popups2.cpp,1500
-popups2.rc,830
-resource.h,2162
-version.rc,24
-resource.rc,23
+message_pump.cpp,1129
+common.h,2366
popup_history.cpp,2330
-common.h,2374
-message_pump.cpp,1156
-popwin.cpp,583
+resource.rc,23
+version.rc,24
+resource.h,2161
+popups2.rc,830
+popups2.cpp,1500
+..\..\include\m_plugins.h,0
+..\..\include\newpluginapi.h,1181
+version.h,150
+popwin.cpp,1022
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;
diff --git a/yapp/version.h b/yapp/version.h index 43c5156..74a235c 100644 --- a/yapp/version.h +++ b/yapp/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 4
#define __RELEASE_NUM 0
-#define __BUILD_NUM 0
+#define __BUILD_NUM 1
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|