From 099b0d4b4da03728dd937b683f8b739370f6a667 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 24 Sep 2005 23:44:49 +0000 Subject: Enforce sane screenmultiply values Subversion-branch: /trunk/chocolate-doom Subversion-revision: 130 --- src/i_video.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/i_video.c b/src/i_video.c index 80d023da..cd569892 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 #include @@ -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; -- cgit v1.2.3