[chocolate-doom] 16/29: Enforce sane screenmultiply values

Jonathan Dowland jmtd at moszumanska.debian.org
Mon Jan 30 15:06:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

jmtd pushed a commit to annotated tag chocolate-doom-0.0.4
in repository chocolate-doom.

commit 099b0d4b4da03728dd937b683f8b739370f6a667
Author: Simon Howard <fraggle at gmail.com>
Date:   Sat Sep 24 23:44:49 2005 +0000

    Enforce sane screenmultiply values
    
    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 130
---
 src/i_video.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/i_video.c b/src/i_video.c
index 80d023d..cd56989 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: i_video.c 129 2005-09-24 23:41:07Z fraggle $
+// $Id: i_video.c 130 2005-09-24 23:44:49Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.30  2005/09/24 23:44:49  fraggle
+// Enforce sane screenmultiply values
+//
 // Revision 1.29  2005/09/24 23:41:07  fraggle
 // Fix "loading" icon for all video modes
 //
@@ -127,7 +130,7 @@
 //-----------------------------------------------------------------------------
 
 static const char
-rcsid[] = "$Id: i_video.c 129 2005-09-24 23:41:07Z fraggle $";
+rcsid[] = "$Id: i_video.c 130 2005-09-24 23:44:49Z fraggle $";
 
 #include <SDL.h>
 #include <ctype.h>
@@ -794,6 +797,11 @@ void I_InitGraphics(void)
         screenmultiply = 2;
     }
 
+    if (screenmultiply < 1)
+        screenmultiply = 1;
+    if (screenmultiply > 2)
+        screenmultiply = 2;
+
     windowwidth = SCREENWIDTH * screenmultiply;
     windowheight = SCREENHEIGHT * screenmultiply;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git



More information about the Pkg-games-commits mailing list