[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: |
Thu, 27 Nov 2003 02:03:12 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/27 02:03:11
Modified files:
src/video : linedraw.c
Log message:
fix rectangle functions
Patches:
Index: stratagus/src/video/linedraw.c
diff -u stratagus/src/video/linedraw.c:1.51 stratagus/src/video/linedraw.c:1.52
--- stratagus/src/video/linedraw.c:1.51 Thu Nov 27 00:37:16 2003
+++ stratagus/src/video/linedraw.c Thu Nov 27 02:03:10 2003
@@ -27,7 +27,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: linedraw.c,v 1.51 2003/11/27 05:37:16 nehalmistry Exp $
+// $Id: linedraw.c,v 1.52 2003/11/27 07:03:10 nehalmistry Exp $
//@{
@@ -708,11 +708,11 @@
global void VideoDrawRectangle(SDL_Color color, int x, int y,
int w, int h)
{
- VideoDrawHLine(color, x, y, w + 1);
- VideoDrawHLine(color, x, y + h, w + 1);
+ VideoDrawHLine(color, x, y, w);
+ VideoDrawHLine(color, x, y + h - 1, w);
- VideoDrawVLine(color, x, y + 1, h - 1);
- VideoDrawVLine(color, x + w, y + 1, h - 1);
+ VideoDrawVLine(color, x, y + 1, h - 2);
+ VideoDrawVLine(color, x + w - 1, y + 1, h - 2);
}
global void VideoDrawRectangleClip(SDL_Color color, int x, int y,
@@ -725,11 +725,11 @@
global void VideoDrawTransRectangle(SDL_Color color, int x, int y,
int w, int h, unsigned char alpha)
{
- VideoDrawTransHLine(color, x, y, w + 1, alpha);
- VideoDrawTransHLine(color, x, y + h, w + 1, alpha);
+ VideoDrawTransHLine(color, x, y, w, alpha);
+ VideoDrawTransHLine(color, x, y + h - 1, w, alpha);
- VideoDrawTransVLine(color, x, y + 1, h - 1, alpha);
- VideoDrawTransVLine(color, x + w, y + 1, h - 1, alpha);
+ VideoDrawTransVLine(color, x, y + 1, h - 2, alpha);
+ VideoDrawTransVLine(color, x + w - 1, y + 1, h - 2, alpha);
}
global void VideoFillRectangle(SDL_Color color, int x, int 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, 2003/11/21
- [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 <=
- [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