[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/video graphic.c
From: |
Nehal Mistry |
Subject: |
[Stratagus-CVS] stratagus/src/video graphic.c |
Date: |
Sat, 22 Nov 2003 17:58:27 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/22 17:58:27
Modified files:
src/video : graphic.c
Log message:
fix bug in ResizeGraphic
Patches:
Index: stratagus/src/video/graphic.c
diff -u stratagus/src/video/graphic.c:1.53 stratagus/src/video/graphic.c:1.54
--- stratagus/src/video/graphic.c:1.53 Sat Nov 22 17:50:50 2003
+++ stratagus/src/video/graphic.c Sat Nov 22 17:58:27 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: graphic.c,v 1.53 2003/11/22 22:50:50 nehalmistry Exp $
+// $Id: graphic.c,v 1.54 2003/11/22 22:58:27 nehalmistry Exp $
//@{
@@ -847,7 +847,8 @@
SDL_FreeSurface(g->Surface);
g->Surface = SDL_CreateRGBSurfaceFrom(data, w, h, 8, w, 0, 0, 0, 0);
- SDL_SetPalette(g->Surface, SDL_LOGPAL|SDL_PHYSPAL, pal, 0, 256);
+ SDL_SetPalette(g->Surface, SDL_LOGPAL | SDL_PHYSPAL, pal, 0, 256);
+ SDL_SetColorKey(g->Surface, SDL_SRCCOLORKEY | SDL_RLEACCEL, 255);
g->Width = w;
g->Height = h;