now have function to get window style based on FreeGLUT's stateflag
authorDiederick Niehorster <dcnieho@gmail.com>
Sat, 17 Nov 2012 00:03:10 +0000 (00:03 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Sat, 17 Nov 2012 00:03:10 +0000 (00:03 +0000)
commiteff7efba782f214b1bfdb57cd85f87e61bd77c03
tree9bed60ff2806fbe8203b537d9364032e290c11e8
parent871c344a629dc834cd89ca1874bd8715e6726db9
now have function to get window style based on FreeGLUT's stateflag
(fgState.DisplayMode) so that window decoration specification is only in
one place in the code. Also, glutGet(GLUT_WINDOW_BORDER_WIDTH); and
glutGet(GLUT_WINDOW_HEADER_HEIGHT); now return the right sizes, i.e.,
taking the display mode into account, for the border and caption when no
window is created yet

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1396 7f0cb862-5218-0410-a997-914c9d46530a
progs/demos/Resizer/Resizer.cpp
src/mswin/fg_window_mswin.c