[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/editor editloop.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/editor editloop.c |
Date: |
29 Jan 2004 10:24:04 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/29 10:24:04
Modified files:
src/editor : editloop.c
Log message:
Fix editor crash.
Patches:
Index: stratagus/src/editor/editloop.c
diff -u stratagus/src/editor/editloop.c:1.159
stratagus/src/editor/editloop.c:1.160
--- stratagus/src/editor/editloop.c:1.159 Sat Jan 24 14:53:26 2004
+++ stratagus/src/editor/editloop.c Thu Jan 29 10:24:03 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: editloop.c,v 1.159 2004/01/24 03:53:26 jsalmon3 Exp $
+// $Id: editloop.c,v 1.160 2004/01/28 23:24:03 nobody_ Exp $
//@{
@@ -635,7 +635,7 @@
icon = UnitTypeByIdent(ShownUnitTypes[i])->Icon.Icon;
DrawIcon(Players + SelectedPlayer, icon, x, y);
- VideoDrawRectangle(ColorGray, x, y, icon->Width,
icon->Height);
+ VideoDrawRectangleClip(ColorGray, x, y, icon->Width,
icon->Height);
if (i == SelectedUnitIndex) {
VideoDrawRectangle(ColorGreen, x + 1, y + 1,
icon->Width - 2, icon->Height - 2);