From 989f6e599eea3c055f5693bb13062152b358ce3d Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:46:23 +0000 Subject: [PATCH] 2002/04/30 01:47:34 darcs-hash:20040130064623-2ba56-1935333015e5f161a5b4826c0082ebf85ad1747b.gz --- CHANGES | 3 +++ src/org/xwt/plat/Win32.cc | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 3dd3e9f..29e7fab 100644 --- a/CHANGES +++ b/CHANGES @@ -91,4 +91,7 @@ Dirty(); replaced with Refresh(). This was causing a thread hazard on Win32, resulting in Bug 21 (closed) +29-Apr megacz Win32.cc: removed redundant Refresh(), removed debugging + statement. + diff --git a/src/org/xwt/plat/Win32.cc b/src/org/xwt/plat/Win32.cc index f3f5fd7..acc51bd 100644 --- a/src/org/xwt/plat/Win32.cc +++ b/src/org/xwt/plat/Win32.cc @@ -53,8 +53,6 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) { return (LRESULT)surface->WndProc((jint)hwnd, (jint)iMsg, (jint)wParam, (jint)lParam); } else { - java::lang::System::out->print(JvNewStringLatin1("miss on hwnd ")); - java::lang::System::out->println((jint)hwnd); // this is really lame -- Win32 insists on being able to call your WndProc BEFORE CreateWindow returns... return DefWindowProc(hwnd, iMsg, wParam, lParam); } @@ -745,7 +743,6 @@ jint org::xwt::plat::Win32$Win32Surface::WndProc(jint _hwnd, jint _iMsg, jint _w PAINTSTRUCT ps; BeginPaint((HWND)org::xwt::plat::Win32$Win32Surface::hwnd, &ps); Dirty(ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right - ps.rcPaint.left, ps.rcPaint.bottom - ps.rcPaint.top); - Refresh(); EndPaint((HWND)org::xwt::plat::Win32$Win32Surface::hwnd, &ps); return 0; -- 1.7.10.4