diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-22 20:39:09 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-22 20:39:09 +0800 |
commit | 86bf747da3069ef3d46e4a206c0316e9f7741916 (patch) | |
tree | d6d95f8b4059ffab61efa573b0ab28a9da01c60d /games/ivan | |
parent | 4757456ec6290dcc3619cd35e964a841761a8ab3 (diff) | |
download | freebsd-ports-gnome-86bf747da3069ef3d46e4a206c0316e9f7741916.tar.gz freebsd-ports-gnome-86bf747da3069ef3d46e4a206c0316e9f7741916.tar.zst freebsd-ports-gnome-86bf747da3069ef3d46e4a206c0316e9f7741916.zip |
- Fix build with clang
Diffstat (limited to 'games/ivan')
-rw-r--r-- | games/ivan/files/patch-FeLib-Source-bitmap.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/ivan/files/patch-FeLib-Source-bitmap.cpp b/games/ivan/files/patch-FeLib-Source-bitmap.cpp new file mode 100644 index 000000000000..3ab45e7e3469 --- /dev/null +++ b/games/ivan/files/patch-FeLib-Source-bitmap.cpp @@ -0,0 +1,20 @@ +--- FeLib/Source/bitmap.cpp.orig 2004-10-26 23:35:47.000000000 +0400 ++++ FeLib/Source/bitmap.cpp 2013-05-30 22:23:14.349113259 +0400 +@@ -873,12 +873,12 @@ + static const int PointY[] = { 0, -1, 0, 0, 1 }; + const int Times = Wide ? 5 : 1; + +- for(int c = 0; c < Times; ++c) ++ for(int t = 0; t < Times; ++t) + { +- const int X1 = OrigFromX + PointX[c]; +- const int Y1 = OrigFromY + PointY[c]; +- const int X2 = OrigToX + PointX[c]; +- const int Y2 = OrigToY + PointY[c]; ++ const int X1 = OrigFromX + PointX[t]; ++ const int Y1 = OrigFromY + PointY[t]; ++ const int X2 = OrigToX + PointX[t]; ++ const int Y2 = OrigToY + PointY[t]; + const int DeltaX = abs(X2 - X1); + const int DeltaY = abs(Y2 - Y1); + int x, c; |