aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Text.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Text.hh')
-rw-r--r--src/FbTk/Text.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FbTk/Text.hh b/src/FbTk/Text.hh
index f04642d..ceb0f19 100644
--- a/src/FbTk/Text.hh
+++ b/src/FbTk/Text.hh
@@ -77,7 +77,7 @@ inline void translateCoords(Orientation orient, int &x, int &y, unsigned int w,
77 77
78// When positioning an X11 box inside another area, we need to 78// When positioning an X11 box inside another area, we need to
79// relocate the x,y coordinates 79// relocate the x,y coordinates
80inline void translatePosition(Orientation orient, int &x, int &y, unsigned int w, unsigned int h) { 80inline void translatePosition(Orientation orient, int &x, int &y, unsigned int w, unsigned int h, unsigned int bw) {
81 81
82 int orig_x = x; 82 int orig_x = x;
83 int orig_y = y; 83 int orig_y = y;
@@ -86,14 +86,14 @@ inline void translatePosition(Orientation orient, int &x, int &y, unsigned int w
86 case ROT0: 86 case ROT0:
87 break; 87 break;
88 case ROT90: 88 case ROT90:
89 x -= h; 89 x -= h + 2*bw;
90 break; 90 break;
91 case ROT180: 91 case ROT180:
92 x -= w; 92 x -= w + 2*bw;
93 y -= h; 93 y -= h + 2*bw;
94 break; 94 break;
95 case ROT270: 95 case ROT270:
96 y -= w; 96 y -= w + 2*bw;
97 break; 97 break;
98 } 98 }
99 99