summaryrefslogtreecommitdiff
path: root/src/i_video.c
diff options
context:
space:
mode:
authorSimon Howard2007-06-20 11:21:57 +0000
committerSimon Howard2007-06-20 11:21:57 +0000
commitbc95293e5f880bffd163504b425123213bd60e04 (patch)
tree56c5a03c315934ac12389a9b0badbd4c81e104aa /src/i_video.c
parent856eebe52624ba5d780436feb349ea5ff2ee46b4 (diff)
downloadchocolate-doom-bc95293e5f880bffd163504b425123213bd60e04.tar.gz
chocolate-doom-bc95293e5f880bffd163504b425123213bd60e04.tar.bz2
chocolate-doom-bc95293e5f880bffd163504b425123213bd60e04.zip
Add x5 screen scale (thanks MikeRS!)
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 919
Diffstat (limited to 'src/i_video.c')
-rw-r--r--src/i_video.c25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/i_video.c b/src/i_video.c
index 1666171e..ade81d03 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -640,6 +640,10 @@ static void BlitArea(int x1, int y1, int x2, int y2)
{
scale_function = I_Stretch4x;
}
+ else if (screenmultiply == 5)
+ {
+ scale_function = I_Stretch5x;
+ }
else
{
I_Error("No aspect ratio stretching function for screenmultiply=%i",
@@ -663,6 +667,10 @@ static void BlitArea(int x1, int y1, int x2, int y2)
{
scale_function = I_Scale4x;
}
+ else if (screenmultiply == 5)
+ {
+ scale_function = I_Scale5x;
+ }
else
{
I_Error("No scale function found!");
@@ -962,7 +970,7 @@ static void CheckCommandLine(void)
nomouse = M_CheckParm("-nomouse") > 0;
- // 2x, 3x, 4x scale mode
+ // 2x, 3x, 4x, 5x scale mode
//!
// @category video
@@ -1008,10 +1016,21 @@ static void CheckCommandLine(void)
screenmultiply = 4;
}
+ //!
+ // @category video
+ //
+ // Double up the screen to 5x its size.
+ //
+
+ if (M_CheckParm("-5"))
+ {
+ screenmultiply = 5;
+ }
+
if (screenmultiply < 1)
screenmultiply = 1;
- if (screenmultiply > 4)
- screenmultiply = 4;
+ if (screenmultiply > 5)
+ screenmultiply = 5;
}
static void AutoAdjustSettings(void)