[Plib-cvs] plib/src/pw pwWindows.cxx,1.14,1.15
Brought to you by:
sjbaker
From: Bram S. <br...@us...> - 2005-09-02 21:03:50
|
Update of /cvsroot/plib/plib/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21618 Modified Files: pwWindows.cxx Log Message: Fixes window sizes on win32, by Jan Reucker Index: pwWindows.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pw/pwWindows.cxx,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- pwWindows.cxx 1 Feb 2005 01:14:13 -0000 1.14 +++ pwWindows.cxx 2 Sep 2005 21:03:43 -0000 1.15 @@ -40,6 +40,7 @@ static int size [2] = { 640, 480 } ; static bool autoRepeat = false ; +static DWORD style = 0 ; static pwResizeCB *resizeCB = NULL ; static pwExitCB *exitCB = NULL ; @@ -69,6 +70,17 @@ if( ( GetKeyState ( VK_MENU ) & 0x8000 ) != 0 ) modifiers |= PW_ALT ; } [...62 lines suppressed...] "PlibAppClass", title, style, @@ -423,9 +433,9 @@ SetCursor( LoadCursor ( NULL, cursor ) ) ; } - void pwSetSize ( int w, int h ) { + clientSizeToWindowSize ( w, h, style ) ; SetWindowPos ( currWnd, HWND_TOP, 0, 0, w, h, SWP_NOMOVE ) ; } @@ -438,6 +448,7 @@ void pwSetSizeOrigin ( int x, int y, int w, int h ) { + clientSizeToWindowSize ( w, h, style ) ; SetWindowPos ( currWnd, HWND_TOP, x, y, w, h, 0 ) ; } |