[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netPanzer-CVS] netpanzer/src/Lib/2D Surface.cpp
From: |
Ivo Danihelka |
Subject: |
[netPanzer-CVS] netpanzer/src/Lib/2D Surface.cpp |
Date: |
Tue, 23 Sep 2003 11:56:05 -0400 |
CVSROOT: /cvsroot/netpanzer
Module name: netpanzer
Branch:
Changes by: Ivo Danihelka <address@hidden> 03/09/23 11:56:05
Modified files:
src/Lib/2D : Surface.cpp
Log message:
Fixed boundary of filled area, max.x max.y was not filled
Patches:
Index: netpanzer/src/Lib/2D/Surface.cpp
diff -u netpanzer/src/Lib/2D/Surface.cpp:1.26
netpanzer/src/Lib/2D/Surface.cpp:1.27
--- netpanzer/src/Lib/2D/Surface.cpp:1.26 Sat Sep 20 03:52:35 2003
+++ netpanzer/src/Lib/2D/Surface.cpp Tue Sep 23 11:56:05 2003
@@ -919,8 +919,8 @@
// Check for clipping
if (bounds.min.x < 0) bounds.min.x = 0;
if (bounds.min.y < 0) bounds.min.y = 0;
- if (bounds.max.x >= pix.x) bounds.max.x = pix.x - 1;
- if (bounds.max.y >= pix.y) bounds.max.y = pix.y - 1;
+ if (bounds.max.x > pix.x) bounds.max.x = pix.x;
+ if (bounds.max.y > pix.y) bounds.max.y = pix.y;
iXY diff;
diff = (bounds.max - bounds.min);