[chocolate-doom] 25/83: Set some flags to fix palette and improve performance
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:06:23 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.1
in repository chocolate-doom.
commit 5be0bc67a0ea139fa53993fc770941e5a2ab42bf
Author: Simon Howard <fraggle at gmail.com>
Date: Wed Aug 3 22:19:52 2005 +0000
Set some flags to fix palette and improve performance
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 31
---
src/i_video.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index 804bf49..baa4fb4 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_video.c 30 2005-08-03 21:58:02Z fraggle $
+// $Id: i_video.c 31 2005-08-03 22:19:52Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.9 2005/08/03 22:19:52 fraggle
+// Set some flags to fix palette and improve performance
+//
// Revision 1.8 2005/08/03 21:58:02 fraggle
// Working scale*2
//
@@ -56,7 +59,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_video.c 30 2005-08-03 21:58:02Z fraggle $";
+rcsid[] = "$Id: i_video.c 31 2005-08-03 22:19:52Z fraggle $";
#include <ctype.h>
#include <SDL.h>
@@ -536,6 +539,7 @@ void I_InitGraphics(void)
SDL_Init(SDL_INIT_VIDEO);
+ flags |= SDL_SWSURFACE | SDL_HWPALETTE;
flags |= SDL_FULLSCREEN;
screen = SDL_SetVideoMode(SCREENWIDTH*multiply, SCREENHEIGHT*multiply, 8, flags);
--
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