summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-04-18 22:10:16 +0000
committerSimon Howard2011-04-18 22:10:16 +0000
commit4511434446e523a5e2a7383b14846df2b91df8f1 (patch)
treecc639b1c44f0082d213917f958be68480dc2ae28
parent30952764cf640001a2e8a0e2e4fefec734b147d9 (diff)
downloadchocolate-doom-4511434446e523a5e2a7383b14846df2b91df8f1.tar.gz
chocolate-doom-4511434446e523a5e2a7383b14846df2b91df8f1.tar.bz2
chocolate-doom-4511434446e523a5e2a7383b14846df2b91df8f1.zip
Add test hack for simulating Porsche Monty's scanline emulation (see
comment in file). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2328
-rw-r--r--src/i_scale.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/i_scale.c b/src/i_scale.c
index 3f7b3a7d..0b702311 100644
--- a/src/i_scale.c
+++ b/src/i_scale.c
@@ -964,6 +964,21 @@ static boolean I_Stretch5x(int x1, int y1, int x2, int y2)
screenp += dest_pitch; bufp += SCREENWIDTH;
}
+ // test hack for Porsche Monty... scan line simulation:
+ // See here: http://www.doomworld.com/vb/post/962612
+
+ if (M_CheckParm("-scanline") > 0)
+ {
+ screenp = (byte *) dest_buffer + 2 * dest_pitch;
+
+ for (y=0; y<1198; y += 3)
+ {
+ memset(screenp, 0, 1600);
+
+ screenp += dest_pitch * 3;
+ }
+ }
+
return true;
}