[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/map map_fog.c
From: |
Nehal Mistry |
Subject: |
[Stratagus-CVS] stratagus/src/map map_fog.c |
Date: |
Sun, 30 Nov 2003 17:46:02 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/30 17:46:02
Modified files:
src/map : map_fog.c
Log message:
temporary fow artifact fix
Patches:
Index: stratagus/src/map/map_fog.c
diff -u stratagus/src/map/map_fog.c:1.128 stratagus/src/map/map_fog.c:1.129
--- stratagus/src/map/map_fog.c:1.128 Sun Nov 30 17:38:57 2003
+++ stratagus/src/map/map_fog.c Sun Nov 30 17:46:02 2003
@@ -27,7 +27,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: map_fog.c,v 1.128 2003/11/30 22:38:57 nehalmistry Exp $
+// $Id: map_fog.c,v 1.129 2003/11/30 22:46:02 nehalmistry Exp $
//@{
@@ -635,10 +635,10 @@
// Contrast
alpha = TheMap.TileGraphic->Surface->format->alpha;
- SDL_SetAlpha(TheMap.TileGraphic->Surface, SDL_SRCALPHA,
+ SDL_SetAlpha(TheMap.TileGraphic->Surface, SDL_SRCALPHA | SDL_RLEACCEL,
(100 - FogOfWarContrast) * 255 / 100);
SDL_BlitSurface(TheMap.TileGraphic->Surface, &srect, TheScreen, &drect);
- SDL_SetAlpha(TheMap.TileGraphic->Surface, SDL_SRCALPHA, alpha);
+ SDL_SetAlpha(TheMap.TileGraphic->Surface, SDL_SRCALPHA | SDL_RLEACCEL,
alpha);
csrc.r = 255;
csrc.g = 255;
@@ -2989,8 +2989,9 @@
32, RMASK, GMASK, BMASK, AMASK);
SDL_FillRect(s, NULL, SDL_MapRGBA(s->format, 0, 0, 0,
(100 - FogOfWarContrast) * 255 / 100));
- SolidFog = SDL_DisplayFormatAlpha(s);
- SDL_FreeSurface(s);
+// SolidFog = SDL_DisplayFormatAlpha(s);
+// SDL_FreeSurface(s);
+ SolidFog = s;
}
if (!OriginalFogOfWar) {
VideoDrawFog = VideoDrawFogAlpha;
- [Stratagus-CVS] stratagus/src/map map_fog.c, Jimmy Salmon, 2003/11/23
- [Stratagus-CVS] stratagus/src/map map_fog.c, Jimmy Salmon, 2003/11/23
- [Stratagus-CVS] stratagus/src/map map_fog.c, Nehal Mistry, 2003/11/28
- [Stratagus-CVS] stratagus/src/map map_fog.c, Nehal Mistry, 2003/11/29
- [Stratagus-CVS] stratagus/src/map map_fog.c, Nehal Mistry, 2003/11/29
- [Stratagus-CVS] stratagus/src/map map_fog.c, Nehal Mistry, 2003/11/30
- [Stratagus-CVS] stratagus/src/map map_fog.c, Nehal Mistry, 2003/11/30
- [Stratagus-CVS] stratagus/src/map map_fog.c, Nehal Mistry, 2003/11/30
- [Stratagus-CVS] stratagus/src/map map_fog.c, Nehal Mistry, 2003/11/30
- [Stratagus-CVS] stratagus/src/map map_fog.c,
Nehal Mistry <=