From 9b36eb081b97a2033e8a92df54812fd5276ee884 Mon Sep 17 00:00:00 2001 From: rkrolib Date: Wed, 26 Nov 2003 01:21:29 +0000 Subject: [PATCH] Added change from Nigel to have resize events cause redraw events in WIN32. Also slightly reshuffled comments to deal with line-wrap issues. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@368 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_init.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/freeglut/freeglut/src/freeglut_init.c b/freeglut/freeglut/src/freeglut_init.c index f914bf6..b23e152 100644 --- a/freeglut/freeglut/src/freeglut_init.c +++ b/freeglut/freeglut/src/freeglut_init.c @@ -147,7 +147,7 @@ void fgInitialize( const char* displayName ) ATOM atom; /* - * What we need to do is to initialize the fgDisplay global structure here... + * What we need to do is to initialize the fgDisplay global structure here. */ fgDisplay.Instance = GetModuleHandle( NULL ); @@ -157,9 +157,14 @@ void fgInitialize( const char* displayName ) ZeroMemory( &wc, sizeof(WNDCLASS) ); /* - * Each of the windows should have its own device context... + * Each of the windows should have its own device context, and we + * want redraw events during Vertical and Horizontal Resizes by + * the user. + * + * XXX Old code had "| CS_DBCLCKS" commented out. Plans for the + * XXX future? Dead-end idea? */ - wc.style = CS_OWNDC /* | CS_DBLCLKS */; + wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = fgWindowProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0;