projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834d0ad
)
implemented WM_DISPLAYCHANGE message handler per patch in very old bug report (121216...
author
Diederick Niehorster
<dcnieho@gmail.com>
Fri, 5 Apr 2013 09:13:48 +0000
(09:13 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Fri, 5 Apr 2013 09:13:48 +0000
(09:13 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1597
7f0cb862
-5218-0410-a997-
914c9d46530a
src/mswin/fg_main_mswin.c
patch
|
blob
|
history
diff --git
a/src/mswin/fg_main_mswin.c
b/src/mswin/fg_main_mswin.c
index
6100ae1
..
f3d2005
100644
(file)
--- a/
src/mswin/fg_main_mswin.c
+++ b/
src/mswin/fg_main_mswin.c
@@
-981,6
+981,12
@@
LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPAR
/* Help screen says this message must be passed to "DefWindowProc" */
break;
+ case WM_DISPLAYCHANGE: /* 0x007E */
+ /* The system display resolution/depth has changed */
+ fgDisplay.ScreenWidth = LOWORD(lParam);
+ fgDisplay.ScreenHeight = HIWORD(lParam);
+ break;
+
case WM_SYSCOMMAND : /* 0x0112 */
{
/*