aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorNicolas Bacca2002-10-26 23:13:32 +0000
committerNicolas Bacca2002-10-26 23:13:32 +0000
commitf89b40f0276601fb279dd2db03eed30c650df22a (patch)
tree754e10aa6d3051d6f6738bdba63283f0c5d0499b /backends
parent832eebbee49537f31847ad55ff74168b19ae2e4c (diff)
downloadscummvm-rg350-f89b40f0276601fb279dd2db03eed30c650df22a.tar.gz
scummvm-rg350-f89b40f0276601fb279dd2db03eed30c650df22a.tar.bz2
scummvm-rg350-f89b40f0276601fb279dd2db03eed30c650df22a.zip
Fix portrait mode + dirty rects
svn-id: r5319
Diffstat (limited to 'backends')
-rw-r--r--backends/wince/pocketpc.cpp5
1 files changed, 3 insertions, 2 deletions
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<num_of_dirty_square; i++) {
- Blt_part(_gfx_buf + (320 * ds[i].y) + ds[i].x, ds[i].x, ds[i].y, ds[i].w, ds[i].h, 320);
+ Blt_part(_gfx_buf + (320 * ds[i].y) + ds[i].x, (GetScreenMode() ? ds[i].x : ds[i].x * 3/4), ds[i].y, ds[i].w, ds[i].h, 320);
}
num_of_dirty_square = 0;
}