aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2011-06-23 02:31:14 +0800
committermakc <makc@FreeBSD.org>2011-06-23 02:31:14 +0800
commit0a24152b4ba52915bfe65634c3f697caeb24d71b (patch)
tree7aadf7500e0a3f0a6367d523bc5b1c3ed4e7761b
parent5a4d04868c8e58a56be51e012d710d0fb97ffac3 (diff)
downloadfreebsd-ports-gnome-0a24152b4ba52915bfe65634c3f697caeb24d71b.tar.gz
freebsd-ports-gnome-0a24152b4ba52915bfe65634c3f697caeb24d71b.tar.zst
freebsd-ports-gnome-0a24152b4ba52915bfe65634c3f697caeb24d71b.zip
Fix build with clang
-rw-r--r--games/hexxagon/files/patch-src__gui__gtkhexxagonboard.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/games/hexxagon/files/patch-src__gui__gtkhexxagonboard.cpp b/games/hexxagon/files/patch-src__gui__gtkhexxagonboard.cpp
new file mode 100644
index 000000000000..35703c37b842
--- /dev/null
+++ b/games/hexxagon/files/patch-src__gui__gtkhexxagonboard.cpp
@@ -0,0 +1,54 @@
+--- ./src/gui/gtkhexxagonboard.cpp.orig 2010-05-20 18:30:04.000000000 +0400
++++ ./src/gui/gtkhexxagonboard.cpp 2011-06-22 00:38:38.893473851 +0400
+@@ -91,11 +91,11 @@
+ int cellNo = 0;
+ for(int y = 0; y < 9; y++)
+ {
+- for(int x = 0; x < 9; x++)
++ for(int x1 = 0; x1 < 9; x1++)
+ {
+- if(x - y >= 5)
++ if(x1 - y >= 5)
+ continue;
+- if(y - x >= 5)
++ if(y - x1 >= 5)
+ continue;
+
+ if(!bbMask.getBit(cellNo))
+@@ -111,8 +111,8 @@
+ // Step size
+ double xs = w * .748;
+
+- double posx = round(xs * x);
+- double posy = round(2 * h - (h * x / 2) + h*y);
++ double posx = round(xs * x1);
++ double posy = round(2 * h - (h * x1 / 2) + h*y);
+
+ posx -= w * adjust / 2;
+ posy -= h * adjust / 2;
+@@ -182,11 +182,11 @@
+ int cellNo = 0;
+ for(int y = 0; y < 9; y++)
+ {
+- for(int x = 0; x < 9; x++)
++ for(int x1 = 0; x1 < 9; x1++)
+ {
+- if(x - y >= 5)
++ if(x1 - y >= 5)
+ continue;
+- if(y - x >= 5)
++ if(y - x1 >= 5)
+ continue;
+
+ // Width and hight
+@@ -196,8 +196,8 @@
+ // Step size
+ double xs = w * .748;
+
+- double posx = round(xs * x);
+- double posy = round(2 * h - (h * x / 2) + h*y);
++ double posx = round(xs * x1);
++ double posy = round(2 * h - (h * x1 / 2) + h*y);
+
+ posx -= w * adjust / 2;
+ posy -= h * adjust / 2;