[Scummvm-cvs-logs] CVS: scummvm/scumm scummvm.cpp,2.11,2.12 nut_renderer.cpp,1.5,1.6
Max Horn
fingolfin at users.sourceforge.net
Wed Dec 25 15:19:02 CET 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm charset.cpp,2.3,2.4 charset.h,2.3,2.4 scummvm.cpp,2.10,2.11 string.cpp,1.64,1.65
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.44,1.45 charset.cpp,2.4,2.5 charset.h,2.4,2.5 saveload.cpp,1.38,1.39 script_v5.cpp,1.8,1.9 script_v6.cpp,1.23,1.24 script_v8.cpp,2.46,2.47 scumm.h,1.107,1.108 scummvm.cpp,2.12,2.13 string.cpp,1.65,1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv7487
Modified Files:
scummvm.cpp nut_renderer.cpp
Log Message:
cleanup
Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.11
retrieving revision 2.12
diff -u -d -r2.11 -r2.12
--- scummvm.cpp 25 Dec 2002 21:57:01 -0000 2.11
+++ scummvm.cpp 25 Dec 2002 23:18:30 -0000 2.12
@@ -207,6 +207,11 @@
else
_resourceHeaderSize = 8;
+ if (_features & GF_OLD256)
+ _charset = new CharsetRendererOld256(this);
+ else
+ _charset = new CharsetRendererClassic(this);
+
memset(_charsetData, 0, sizeof(_charsetData));
if (!(_features & GF_SMALL_NAMES) && !(_features & GF_AFTER_V8))
@@ -1552,11 +1557,6 @@
void Scumm::launch()
{
- if (_features & GF_OLD256)
- _charset = new CharsetRendererOld256(this);
- else
- _charset = new CharsetRendererClassic(this);
-
gdi._vm = this;
_maxHeapThreshold = 450000;
Index: nut_renderer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/nut_renderer.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- nut_renderer.cpp 25 Dec 2002 20:07:09 -0000 1.5
+++ nut_renderer.cpp 25 Dec 2002 23:18:30 -0000 1.6
@@ -223,14 +223,8 @@
for (int32 tx = 0; tx < width; tx++) {
byte pixel = *(_tmpCodecBuffer + ty * width + tx);
if (pixel != 0) {
- if (color == 0) {
- if (pixel == 0x01)
- pixel = 0xf;
- }
- else {
- if (pixel == 0x01)
- pixel = color;
- }
+ if (pixel == 0x01)
+ pixel = (color == 0) ? 0xf : color;
if (pixel == 0xff)
pixel = 0x0;
*(_dstPtr + ((ty + y) * _dstPitch + x + tx)) = pixel;
@@ -238,4 +232,3 @@
}
}
}
-
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm charset.cpp,2.3,2.4 charset.h,2.3,2.4 scummvm.cpp,2.10,2.11 string.cpp,1.64,1.65
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.44,1.45 charset.cpp,2.4,2.5 charset.h,2.4,2.5 saveload.cpp,1.38,1.39 script_v5.cpp,1.8,1.9 script_v6.cpp,1.23,1.24 script_v8.cpp,2.46,2.47 scumm.h,1.107,1.108 scummvm.cpp,2.12,2.13 string.cpp,1.65,1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list