[Scummvm-cvs-logs] CVS: scummvm/common scaler.cpp,1.55,1.56
Max Horn
fingolfin at users.sourceforge.net
Mon Apr 12 14:31:01 CEST 2004
- Previous message: [Scummvm-cvs-logs] CVS: residual/lua/src lundump.c,1.1.1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,NONE,1.1 actionmap.h,NONE,1.1 actionmap_mod.h,NONE,1.1 actor.cpp,NONE,1.1 actor.h,NONE,1.1 actor_mod.h,NONE,1.1 actordata.cpp,NONE,1.1 actordata.h,NONE,1.1 animation.cpp,NONE,1.1 animation.h,NONE,1.1 animation_mod.h,NONE,1.1 cmdline.cpp,NONE,1.1 console.cpp,NONE,1.1 console.h,NONE,1.1 console_mod.h,NONE,1.1 cvar.cpp,NONE,1.1 cvar.h,NONE,1.1 cvar_mod.h,NONE,1.1 events.cpp,NONE,1.1 events.h,NONE,1.1 events_mod.h,NONE,1.1 expr.cpp,NONE,1.1 expr.h,NONE,1.1 font.cpp,NONE,1.1 font.h,NONE,1.1 font_map.cpp,NONE,1.1 font_mod.h,NONE,1.1 game.cpp,NONE,1.1 game.h,NONE,1.1 game_mod.h,NONE,1.1 gfx.cpp,NONE,1.1 gfx.h,NONE,1.1 gfx_mod.h,NONE,1.1 ihnm_introproc.cpp,NONE,1.1 ihnm_introproc.h,NONE,1.1 image.cpp,NONE,1.1 image.h,NONE,1.1 image_mod.h,NONE,1.1 interface.cpp,NONE,1.1 interface.h,NONE,1.1 interface_mod.h,NONE,1.1 isomap.cpp,NONE,1.1 isomap.h,NONE,1.1 isomap_mod.h,NONE,1.1 ite_introproc.cpp,NONE,1.1 ite_introproc.h,NONE,1.1 ite_introproc_mod.h,NONE,1.1 math.cpp,NONE,1.1 math.h,NONE,1.1 math_mod.h,NONE,1.1 misc.cpp,NONE,1.1 objectmap.cpp,NONE,1.1 objectmap.h,NONE,1.1 objectmap_mod.h,NONE,1.1 palanim.cpp,NONE,1.1 palanim.h,NONE,1.1 palanim_mod.h,NONE,1.1 reinherit.h,NONE,1.1 render.cpp,NONE,1.1 render.h,NONE,1.1 render_mod.h,NONE,1.1 rscfile.cpp,NONE,1.1 rscfile.h,NONE,1.1 rscfile_mod.h,NONE,1.1 scene.cpp,NONE,1.1 scene.h,NONE,1.1 scene_mod.h,NONE,1.1 sceneproc.cpp,NONE,1.1 sceneproc.h,NONE,1.1 script.cpp,NONE,1.1 script.h,NONE,1.1 script_mod.h,NONE,1.1 sdata.cpp,NONE,1.1 sdata.h,NONE,1.1 sdebug.cpp,NONE,1.1 sfuncs.cpp,NONE,1.1 sfuncs.h,NONE,1.1 sndres.cpp,NONE,1.1 sndres.h,NONE,1.1 sndres_mod.h,NONE,1.1 sprite.cpp,NONE,1.1 sprite.h,NONE,1.1 sprite_mod.h,NONE,1.1 sstack.cpp,NONE,1.1 sstack.h,NONE,1.1 stack.cpp,NONE,1.1 stack.h,NONE,1.1 stack_mod.h,NONE,1.1 sthread.cpp,NONE,1.1 sthread.h,NONE,1.1 sys_fs.cpp,NONE,1.1 sys_interface.h,NONE,1.1 sysgfx.cpp,NONE,1.1 sysgfx.h,NONE,1.1 sysinput.cpp,NONE,1.1 sysio.cpp,NONE,1.1 sysmusic.cpp,NONE,1.1 syssound.cpp,NONE,1.1 systimer.cpp,NONE,1.1 systimer.h,NONE,1.1 text.cpp,NONE,1.1 text.h,NONE,1.1 text_mod.h,NONE,1.1 transitions.cpp,NONE,1.1 x86_32.h,NONE,1.1 xmidi.cpp,NONE,1.1 xmidi.h,NONE,1.1 xmidi_mod.h,NONE,1.1 ys_binread.cpp,NONE,1.1 ys_binwrite.cpp,NONE,1.1 ys_dl_list.cpp,NONE,1.1 ys_file.cpp,NONE,1.1 yslib.h,NONE,1.1 gamedesc_priv.h,1.3,1.4 module.mk,1.1,1.2 saga.cpp,1.3,1.4 saga.h,1.3,1.4 binread.cpp,1.4,NONE binread.h,1.2,NONE gamedesc.cpp,1.6,NONE gamedesc.h,1.4,NONE resfile.cpp,1.5,NONE resfile.h,1.3,NONE resnames.h,1.2,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21947
Modified Files:
scaler.cpp
Log Message:
Updated to match scale2x 2.0
Index: scaler.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/scaler.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- scaler.cpp 27 Feb 2004 15:52:23 -0000 1.55
+++ scaler.cpp 12 Apr 2004 21:16:32 -0000 1.56
@@ -176,10 +176,18 @@
A = B; B = C; C = *(p - nextlineSrc);
D = E; E = F; F = *(p);
G = H; H = I; I = *(p + nextlineSrc);
- *(q + 0) = D == B && B != F && D != H ? D : E;
- *(q + 1) = B == F && B != D && F != H ? F : E;
- *(q + nextlineDst + 0) = D == H && D != B && H != F ? D : E;
- *(q + nextlineDst + 1) = H == F && D != H && B != F ? F : E;
+
+ if (B != H && D != F) {
+ *(q + 0) = D == B ? D : E;
+ *(q + 1) = B == F ? F : E;
+ *(q + nextlineDst + 0) = D == H ? D : E;
+ *(q + nextlineDst + 1) = H == F ? F : E;
+ } else {
+ *(q + 0) = E;
+ *(q + 1) = E;
+ *(q + nextlineDst + 0) = E;
+ *(q + nextlineDst + 1) = E;
+ }
q += 2;
}
p += nextlineSrc - width;
@@ -216,16 +224,29 @@
A = B; B = C; C = *(p - nextlineSrc);
D = E; E = F; F = *(p);
G = H; H = I; I = *(p + nextlineSrc);
+
+ if (B != H && D != F) {
+ *(q + 0) = D == B ? D : E;
+ *(q + 1) = (D == B && E != C) || (B == F && E != A) ? B : E;
+ *(q + 2) = B == F ? F : E;
+ *(q + nextlineDst + 0) = (D == B && E != G) || (D == B && E != A) ? D : E;
+ *(q + nextlineDst + 1) = E;
+ *(q + nextlineDst + 2) = (B == F && E != I) || (H == F && E != C) ? F : E;
+ *(q + 2 * nextlineDst + 0) = D == H ? D : E;
+ *(q + 2 * nextlineDst + 1) = (D == H && E != I) || (H == F && E != G) ? H : E;
+ *(q + 2 * nextlineDst + 2) = H == F ? F : E;
+ } else {
+ *(q + 0) = E;
+ *(q + 1) = E;
+ *(q + 2) = E;
+ *(q + nextlineDst + 0) = E;
+ *(q + nextlineDst + 1) = E;
+ *(q + nextlineDst + 2) = E;
+ *(q + 2 * nextlineDst + 0) = E;
+ *(q + 2 * nextlineDst + 1) = E;
+ *(q + 2 * nextlineDst + 2) = E;
+ }
- *(q) = D == B && B != F && D != H ? D : E;
- *(q + 1) = E;
- *(q + 2) = B == F && B != D && F != H ? F : E;
- *(q + nextlineDst) = E;
- *(q + nextlineDst + 1) = E;
- *(q + nextlineDst + 2) = E;
- *(q + 2 * nextlineDst) = D == H && D != B && H != F ? D : E;
- *(q + 2 * nextlineDst + 1) = E;
- *(q + 2 * nextlineDst + 2) = H == F && D != H && B != F ? F : E;
q += 3;
}
p += nextlineSrc - width;
- Previous message: [Scummvm-cvs-logs] CVS: residual/lua/src lundump.c,1.1.1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,NONE,1.1 actionmap.h,NONE,1.1 actionmap_mod.h,NONE,1.1 actor.cpp,NONE,1.1 actor.h,NONE,1.1 actor_mod.h,NONE,1.1 actordata.cpp,NONE,1.1 actordata.h,NONE,1.1 animation.cpp,NONE,1.1 animation.h,NONE,1.1 animation_mod.h,NONE,1.1 cmdline.cpp,NONE,1.1 console.cpp,NONE,1.1 console.h,NONE,1.1 console_mod.h,NONE,1.1 cvar.cpp,NONE,1.1 cvar.h,NONE,1.1 cvar_mod.h,NONE,1.1 events.cpp,NONE,1.1 events.h,NONE,1.1 events_mod.h,NONE,1.1 expr.cpp,NONE,1.1 expr.h,NONE,1.1 font.cpp,NONE,1.1 font.h,NONE,1.1 font_map.cpp,NONE,1.1 font_mod.h,NONE,1.1 game.cpp,NONE,1.1 game.h,NONE,1.1 game_mod.h,NONE,1.1 gfx.cpp,NONE,1.1 gfx.h,NONE,1.1 gfx_mod.h,NONE,1.1 ihnm_introproc.cpp,NONE,1.1 ihnm_introproc.h,NONE,1.1 image.cpp,NONE,1.1 image.h,NONE,1.1 image_mod.h,NONE,1.1 interface.cpp,NONE,1.1 interface.h,NONE,1.1 interface_mod.h,NONE,1.1 isomap.cpp,NONE,1.1 isomap.h,NONE,1.1 isomap_mod.h,NONE,1.1 ite_introproc.cpp,NONE,1.1 ite_introproc.h,NONE,1.1 ite_introproc_mod.h,NONE,1.1 math.cpp,NONE,1.1 math.h,NONE,1.1 math_mod.h,NONE,1.1 misc.cpp,NONE,1.1 objectmap.cpp,NONE,1.1 objectmap.h,NONE,1.1 objectmap_mod.h,NONE,1.1 palanim.cpp,NONE,1.1 palanim.h,NONE,1.1 palanim_mod.h,NONE,1.1 reinherit.h,NONE,1.1 render.cpp,NONE,1.1 render.h,NONE,1.1 render_mod.h,NONE,1.1 rscfile.cpp,NONE,1.1 rscfile.h,NONE,1.1 rscfile_mod.h,NONE,1.1 scene.cpp,NONE,1.1 scene.h,NONE,1.1 scene_mod.h,NONE,1.1 sceneproc.cpp,NONE,1.1 sceneproc.h,NONE,1.1 script.cpp,NONE,1.1 script.h,NONE,1.1 script_mod.h,NONE,1.1 sdata.cpp,NONE,1.1 sdata.h,NONE,1.1 sdebug.cpp,NONE,1.1 sfuncs.cpp,NONE,1.1 sfuncs.h,NONE,1.1 sndres.cpp,NONE,1.1 sndres.h,NONE,1.1 sndres_mod.h,NONE,1.1 sprite.cpp,NONE,1.1 sprite.h,NONE,1.1 sprite_mod.h,NONE,1.1 sstack.cpp,NONE,1.1 sstack.h,NONE,1.1 stack.cpp,NONE,1.1 stack.h,NONE,1.1 stack_mod.h,NONE,1.1 sthread.cpp,NONE,1.1 sthread.h,NONE,1.1 sys_fs.cpp,NONE,1.1 sys_interface.h,NONE,1.1 sysgfx.cpp,NONE,1.1 sysgfx.h,NONE,1.1 sysinput.cpp,NONE,1.1 sysio.cpp,NONE,1.1 sysmusic.cpp,NONE,1.1 syssound.cpp,NONE,1.1 systimer.cpp,NONE,1.1 systimer.h,NONE,1.1 text.cpp,NONE,1.1 text.h,NONE,1.1 text_mod.h,NONE,1.1 transitions.cpp,NONE,1.1 x86_32.h,NONE,1.1 xmidi.cpp,NONE,1.1 xmidi.h,NONE,1.1 xmidi_mod.h,NONE,1.1 ys_binread.cpp,NONE,1.1 ys_binwrite.cpp,NONE,1.1 ys_dl_list.cpp,NONE,1.1 ys_file.cpp,NONE,1.1 yslib.h,NONE,1.1 gamedesc_priv.h,1.3,1.4 module.mk,1.1,1.2 saga.cpp,1.3,1.4 saga.h,1.3,1.4 binread.cpp,1.4,NONE binread.h,1.2,NONE gamedesc.cpp,1.6,NONE gamedesc.h,1.4,NONE resfile.cpp,1.5,NONE resfile.h,1.3,NONE resnames.h,1.2,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list