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.
+
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);
}
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;