[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/video linedraw.c
From: |
Nehal Mistry |
Subject: |
[Stratagus-CVS] stratagus/src/video linedraw.c |
Date: |
Fri, 21 Nov 2003 22:18:45 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/21 22:18:42
Modified files:
src/video : linedraw.c
Log message:
small cleanups
Patches:
Index: stratagus/src/video/linedraw.c
diff -u stratagus/src/video/linedraw.c:1.47 stratagus/src/video/linedraw.c:1.48
--- stratagus/src/video/linedraw.c:1.47 Fri Nov 21 22:00:22 2003
+++ stratagus/src/video/linedraw.c Fri Nov 21 22:17:52 2003
@@ -27,7 +27,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: linedraw.c,v 1.47 2003/11/22 03:00:22 nehalmistry Exp $
+// $Id: linedraw.c,v 1.48 2003/11/22 03:17:52 nehalmistry Exp $
//@{
@@ -760,18 +760,14 @@
{
SDL_Rect drect;
SDL_Surface* s;
+ Uint32 c;
- s = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_SRCALPHA, w, h,
+ s = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h,
32, RMASK, GMASK, BMASK, AMASK);
- Uint32 c = SDL_MapRGBA(s->format, color.r, color.g, color.b, alpha);
+ c = SDL_MapRGBA(s->format, color.r, color.g, color.b, alpha);
- drect.x = 0;
- drect.y = 0;
- drect.w = w;
- drect.h = h;
-
- SDL_FillRect(s, &drect, c);
+ SDL_FillRect(s, NULL, c);
drect.x = x;
drect.y = y;
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/18
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/20
- [Stratagus-CVS] stratagus/src/video linedraw.c,
Nehal Mistry <=
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/22
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/27
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/27
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/27
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/28
- [Stratagus-CVS] stratagus/src/video linedraw.c, Nehal Mistry, 2003/11/29