[Scummvm-cvs-logs] CVS: scummvm/backends/wince CEScaler.cpp,1.2,1.3
Nicolas Bacca
arisme at users.sourceforge.net
Tue Jan 27 17:14:43 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm/smush chunk.cpp,1.24,1.25 chunk.h,1.12,1.13 smush_player.cpp,1.100,1.101
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince CEActions.cpp,1.2,1.3 CEActions.h,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/wince
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24418
Modified Files:
CEScaler.cpp
Log Message:
640x480 changes
Index: CEScaler.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEScaler.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CEScaler.cpp 27 Jan 2004 01:29:30 -0000 1.2
+++ CEScaler.cpp 28 Jan 2004 01:05:22 -0000 1.3
@@ -53,7 +53,6 @@
int width, int height) {
uint8 *work;
int i;
- int dec;
uint16 srcPitch16 = (uint16)(srcPitch / sizeof(uint16));
while ((height-=2) >= 0) {
@@ -61,12 +60,12 @@
work = dstPtr;
for (int i=0; i<width; i+=2) {
- // Work with 2 pixels on a row and one below
+ // Another lame filter attempt :)
uint16 color1 = *(((const uint16 *)srcPtr) + i);
uint16 color2 = *(((const uint16 *)srcPtr) + (i + 1));
uint16 color3 = *(((const uint16 *)srcPtr) + (i + srcPitch16));
-
- *(((uint16 *)work) + 0) = interpolate16_3<565, 2, 1, 1>(color1, color2, color3);
+ uint16 color4 = *(((const uint16 *)srcPtr) + (i + srcPitch16 + 1));
+ *(((uint16 *)work) + 0) = interpolate16_4<565, 1, 1, 1, 1>(color1, color2, color3, color4);
work += sizeof(uint16);
}
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm/smush chunk.cpp,1.24,1.25 chunk.h,1.12,1.13 smush_player.cpp,1.100,1.101
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince CEActions.cpp,1.2,1.3 CEActions.h,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list