summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-03-04 19:01:48 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-03-04 19:01:48 +0000
commitacd6cece37658712760852034c7a6d8812bd2033 (patch)
tree64ceaca0765a2baea8100e42d00a3bdb10d529a9
parentac66e4d72ea3cbece7e26b150eb21b5964075ad6 (diff)
Fixed WM_SYNCPAINT patch - should be WM_NCPAINT...
git-svn-id: file:///fltk/svn/fltk/trunk@366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_win32.cxx24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 774e72e24..9c4120034 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_win32.cxx,v 1.31 1999/03/04 18:32:13 mike Exp $"
+// "$Id: Fl_win32.cxx,v 1.32 1999/03/04 19:01:48 mike Exp $"
//
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
//
@@ -328,20 +328,14 @@ static Fl_Window* resize_bug_fix;
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
static char buffer[2];
+ static int cnt=0;
- static int cnt=0;
- if(uMsg == WM_SYNCPAINT)
- {
- if(cnt)
- {
- InvalidateRect(fl_window,0,FALSE);
- cnt = 0;
- } else {
- cnt = 1;
- }
- } else if (uMsg == WM_PAINT) {
- cnt = 0;
- }
+ if(uMsg == WM_NCPAINT) {
+ if(cnt) {
+ InvalidateRect(fl_window,0,FALSE);
+ cnt = 0;
+ } else cnt = 1;
+ } else if (uMsg == WM_PAINT) cnt = 0;
fl_msg.message = uMsg;
@@ -905,5 +899,5 @@ void Fl_Window::make_current() {
}
//
-// End of "$Id: Fl_win32.cxx,v 1.31 1999/03/04 18:32:13 mike Exp $".
+// End of "$Id: Fl_win32.cxx,v 1.32 1999/03/04 19:01:48 mike Exp $".
//