mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Restored WM_SYNCPAINT handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+9
-8
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_win32.cxx,v 1.33.2.31 2001/01/22 15:13:40 easysw Exp $"
|
// "$Id: Fl_win32.cxx,v 1.33.2.32 2001/04/13 17:30:21 spitzak Exp $"
|
||||||
//
|
//
|
||||||
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
|
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -419,13 +419,14 @@ static Fl_Window* resize_bug_fix;
|
|||||||
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
// Not sure what this is, it may be left over from earlier attempts to
|
// Matt: When dragging a full window, MSWindows on 'slow'
|
||||||
// treat WM_PAINT as an expose event, rather than painting in response
|
// machines can lose track of the window refresh area. It sends some kind
|
||||||
// to it.
|
// of panic message to the desktop that in turn sends this message on to
|
||||||
|
// all applications.
|
||||||
static int cnt=0;
|
static int cnt=0;
|
||||||
if(uMsg == WM_SYNCPAINT) {
|
if (uMsg == WM_SYNCPAINT) {
|
||||||
if(cnt) {
|
if (cnt) {
|
||||||
InvalidateRect(fl_window,0,FALSE);
|
InvalidateRect(fl_window,0,FALSE);
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
} else cnt = 1;
|
} else cnt = 1;
|
||||||
@@ -951,5 +952,5 @@ void Fl_Window::make_current() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_win32.cxx,v 1.33.2.31 2001/01/22 15:13:40 easysw Exp $".
|
// End of "$Id: Fl_win32.cxx,v 1.33.2.32 2001/04/13 17:30:21 spitzak Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user