From f89b40f0276601fb279dd2db03eed30c650df22a Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sat, 26 Oct 2002 23:13:32 +0000 Subject: Fix portrait mode + dirty rects svn-id: r5319 --- backends/wince/pocketpc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backends/wince') diff --git a/backends/wince/pocketpc.cpp b/backends/wince/pocketpc.cpp index c74fac0890..9326727ebc 100644 --- a/backends/wince/pocketpc.cpp +++ b/backends/wince/pocketpc.cpp @@ -100,7 +100,7 @@ typedef struct { #define AddDirtyRect(xi,yi,wi,hi) \ if (num_of_dirty_square < MAX_NUMBER_OF_DIRTY_SQUARES) { \ - ds[num_of_dirty_square].x = xi; \ + ds[num_of_dirty_square].x = xi; \ ds[num_of_dirty_square].y = yi; \ ds[num_of_dirty_square].w = wi; \ ds[num_of_dirty_square].h = hi; \ @@ -1144,6 +1144,7 @@ LRESULT CALLBACK OSystem_WINCE3::WndProc(HWND hWnd, UINT message, WPARAM wParam, break; case ToolbarMode: SetScreenMode(!GetScreenMode()); + num_of_dirty_square = MAX_NUMBER_OF_DIRTY_SQUARES; if (!hide_toolbar) toolbar_drawn = false; break; @@ -1563,7 +1564,7 @@ void OSystem_WINCE3::update_screen() { else { int i; for (i=0; i