[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,1.7,1.8 string.cpp,1.6,1.7

Pawe? Ko?odziejski aquadran at users.sourceforge.net
Sat Aug 31 11:47:01 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv29741/scumm

Modified Files:
	gfx.cpp string.cpp 
Log Message:
fixes

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- gfx.cpp	31 Aug 2002 16:29:17 -0000	1.7
+++ gfx.cpp	31 Aug 2002 18:46:00 -0000	1.8
@@ -225,15 +225,15 @@
 		b = vs->height;
 
 	height = b - t;
-	if (height > _realHeight)
-		height = _realHeight;
+	if (height > _vm->_realHeight)
+		height = _vm->_realHeight;
 
-	scrollY = _vm->camera._cur.y - (_realHeight / 2);
-	if (scrollY == -(_realHeight / 2))
+	scrollY = _vm->camera._cur.y - (_vm->_realHeight / 2);
+	if (scrollY == -(_vm->_realHeight / 2))
 		scrollY = 0;
 
-	ptr = vs->screenPtr + (t * NUM_STRIPS + x) * 8 + _readOffs + scrollY * _realWidth;
-	_vm->_system->copy_rect(ptr, _realWidth, x * 8, vs->topline + t, w, height);
+	ptr = vs->screenPtr + (t * NUM_STRIPS + x) * 8 + _readOffs + scrollY * _vm->_realWidth;
+	_vm->_system->copy_rect(ptr, _vm->_realWidth, x * 8, vs->topline + t, w, height);
 }
 
 void blit(byte *dst, byte *src, int w, int h)
@@ -872,7 +872,7 @@
 
 	twobufs = vs->alloctwobuffers;
 
-	_vertStripNextInc = h * _realWidth - 1;
+	_vertStripNextInc = h * _vm->_realWidth - 1;
 
 	_numLinesToProcess = h;
 
@@ -1138,8 +1138,8 @@
 			((uint32 *)dst)[0] = ((uint32 *)src)[0];
 			((uint32 *)dst)[1] = ((uint32 *)src)[1];
 		}
-		src += _realWidth;
-		dst += _realWidth;
+		src += _vm->_realWidth;
+		dst += _vm->_realWidth;
 		mask += NUM_STRIPS;
 	} while (--height);
 }
@@ -1187,7 +1187,7 @@
 	do {
 		((uint32 *)dst)[0] = 0;
 		((uint32 *)dst)[1] = 0;
-		dst += _realWidth;
+		dst += _vm->_realWidth;
 	} while (--height);
 }
 
@@ -1508,7 +1508,7 @@
 		_tempNumLines = _numLinesToProcess;
 		do {
 			FILL_BITS *dst = color + _palette_mod;
-			dst += _realWidth;
+			dst += _vm->_realWidth;
 			if (!READ_BIT) {
 			} else if (!READ_BIT) {
 				FILL_BITS color = bits & _decomp_mask;
@@ -1532,7 +1532,7 @@
  bits = ((buffer & mask) != 0);
 
 #define NEXT_ROW                                               \
-                dst += _realWidth;                              \
+                dst += _vm->_realWidth;                         \
                 if (--h == 0) {                                 \
                         if (!--_currentX)                       \
                                 return;                         \
@@ -1565,7 +1565,7 @@
 		((uint32 *)dst)[0] = ((uint32 *)src)[0];
 		((uint32 *)dst)[1] = ((uint32 *)src)[1];
 #endif
-		dst += _realWidth;
+		dst += _vm->_realWidth;
 		src += 8;
 	} while (--height);
 }

Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- string.cpp	31 Aug 2002 16:29:17 -0000	1.6
+++ string.cpp	31 Aug 2002 18:46:00 -0000	1.7
@@ -813,7 +813,7 @@
 		_unk12 = 0;
 	}
 	char_ptr = _vm->getResourceAddress(rtCharset, _curId) + 224 + (chr + 1) * 8;
-	dest_ptr = vs->screenPtr + vs->xstart + (_top - vs->topline) * _realWidth + _left;
+	dest_ptr = vs->screenPtr + vs->xstart + (_top - vs->topline) * _vm->_realWidth + _left;
 	_vm->updateDirtyRect(vs->number, _left, _left + 8, _top - vs->topline, _top - vs->topline + 8, 0);
 
 	for (y = 0; y < 8; y++) {
@@ -824,7 +824,7 @@
 			}
 			color = ((buffer & mask) != 0);
 			if (color)
-				*(dest_ptr + y * _realWidth + x) = _color;
+				*(dest_ptr + y * _vm->_realWidth + x) = _color;
 		}
 	}
 
@@ -937,7 +937,7 @@
 		_hasMask = true;
 #endif
 
-	_dest_ptr = _backbuff_ptr = vs->screenPtr + vs->xstart + _drawTop * _realWidth + _left;
+	_dest_ptr = _backbuff_ptr = vs->screenPtr + vs->xstart + _drawTop * _vm->_realWidth + _left;
 
 #if !defined(OLD)
 	if (_blitAlso) {
@@ -945,7 +945,7 @@
 	if (1) {
 #endif
 		_dest_ptr = _bgbak_ptr = _vm->getResourceAddress(rtBuffer, vs->number + 5)
-			+ vs->xstart + _drawTop * _realWidth + _left;
+			+ vs->xstart + _drawTop * _vm->_realWidth + _left;
 	}
 
 	_mask_ptr = _vm->getResourceAddress(rtBuffer, 9)
@@ -1012,7 +1012,7 @@
 				maskpos++;
 			}
 		}
-		dst = (_dest_ptr += _realWidth);
+		dst = (_dest_ptr += _vm->_realWidth);
 		mask += 40;
 		y++;
 	}





More information about the Scummvm-git-logs mailing list