aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2011-06-22 18:31:14 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2011-06-22 18:31:14 +0000
commitfa2fddc7fad40441b23a4720c972781b46d18686 (patch)
tree7ff1cee8528395525b6e5753026b302d3f496835 /games
parentc88d74b4add960533cd69a1fe3cd237373d2b47e (diff)
downloadports-fa2fddc7fad40441b23a4720c972781b46d18686.tar.gz
ports-fa2fddc7fad40441b23a4720c972781b46d18686.zip
Notes
Diffstat (limited to 'games')
-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;