projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed unnecessary calls to SetWindowPos when entering and leaving
[freeglut]
/
src
/
mswin
/
fg_window_mswin.c
diff --git
a/src/mswin/fg_window_mswin.c
b/src/mswin/fg_window_mswin.c
index
9c69d2e
..
f252948
100644
(file)
--- a/
src/mswin/fg_window_mswin.c
+++ b/
src/mswin/fg_window_mswin.c
@@
-934,7
+934,6
@@
void fgPlatformGlutFullScreen( SFG_Window *win )
s &= ~WS_OVERLAPPEDWINDOW;
s |= WS_POPUP;
SetWindowLong(win->Window.Handle, GWL_STYLE, s);
s &= ~WS_OVERLAPPEDWINDOW;
s |= WS_POPUP;
SetWindowLong(win->Window.Handle, GWL_STYLE, s);
- SetWindowPos(win->Window.Handle, HWND_TOP, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
/* For fullscreen mode, find the monitor that is covered the most
* by the window and get its rect as the resize target.
/* For fullscreen mode, find the monitor that is covered the most
* by the window and get its rect as the resize target.
@@
-996,7
+995,6
@@
void fgPlatformGlutLeaveFullScreen( SFG_Window *win )
/* restore style of window before making it fullscreen */
SetWindowLong(win->Window.Handle, GWL_STYLE, win->State.pWState.OldStyle);
/* restore style of window before making it fullscreen */
SetWindowLong(win->Window.Handle, GWL_STYLE, win->State.pWState.OldStyle);
- SetWindowPos(win->Window.Handle, HWND_TOP, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
/* Then resize */
SetWindowPos(win->Window.Handle,
/* Then resize */
SetWindowPos(win->Window.Handle,