aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Text.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-04 12:16:26 (GMT)
committersimonb <simonb>2006-04-04 12:16:26 (GMT)
commitc243fa897f37dabeade187ac74ea5cd175e80a22 (patch)
tree6200f9e4daa633ba884af79c92a6f5a4f7a57a70 /src/FbTk/Text.hh
parent839d9c669be5164413769b77e98cda15bba77a6b (diff)
downloadfluxbox_pavel-c243fa897f37dabeade187ac74ea5cd175e80a22.zip
fluxbox_pavel-c243fa897f37dabeade187ac74ea5cd175e80a22.tar.bz2
rotated XFonts (and minor ext tab alignment fixes)
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