[Scummvm-cvs-logs] CVS: scummvm/backends/wince pocketpc.cpp,1.8,1.9
Nicolas Bacca
arisme at users.sourceforge.net
Sat Oct 26 16:14:02 CEST 2002
Update of /cvsroot/scummvm/scummvm/backends/wince
In directory usw-pr-cvs1:/tmp/cvs-serv7327
Modified Files:
pocketpc.cpp
Log Message:
Fix portrait mode + dirty rects
Index: pocketpc.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/pocketpc.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- pocketpc.cpp 25 Oct 2002 23:44:15 -0000 1.8
+++ pocketpc.cpp 26 Oct 2002 23:13:32 -0000 1.9
@@ -100,7 +100,7 @@
#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 @@
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 @@
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;
}
More information about the Scummvm-git-logs
mailing list