aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextUtils.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextUtils.hh')
-rw-r--r--src/FbTk/TextUtils.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/TextUtils.hh b/src/FbTk/TextUtils.hh
index efb6020..dcc222c 100644
--- a/src/FbTk/TextUtils.hh
+++ b/src/FbTk/TextUtils.hh
@@ -72,7 +72,7 @@ inline void translateCoords(Orientation orient, int &x, int &y, unsigned int w,
72} 72}
73 73
74// still require w and h in ROT0 coords 74// still require w and h in ROT0 coords
75inline void untranslateCoords(Orientation orient, int orig_x, int orig_y, unsigned int w, unsigned int h) { 75inline void untranslateCoords(Orientation orient, int &orig_x, int &orig_y, unsigned int w, unsigned int h) {
76 76
77 int x = orig_x; 77 int x = orig_x;
78 int y = orig_y; 78 int y = orig_y;
@@ -98,7 +98,7 @@ inline void untranslateCoords(Orientation orient, int orig_x, int orig_y, unsign
98 98
99// When positioning an X11 box inside another area, we need to 99// When positioning an X11 box inside another area, we need to
100// relocate the x,y coordinates 100// relocate the x,y coordinates
101inline void translatePosition(Orientation orient, int x, int y, unsigned int w, unsigned int h, unsigned int bw) { 101inline void translatePosition(Orientation orient, int &x, int &y, unsigned int w, unsigned int h, unsigned int bw) {
102 102
103 switch(orient) { 103 switch(orient) {
104 case ROT0: 104 case ROT0:
@@ -117,7 +117,7 @@ inline void translatePosition(Orientation orient, int x, int y, unsigned int w,
117 117
118} 118}
119 119
120inline void translateSize(Orientation orient, unsigned int w, unsigned int h) { 120inline void translateSize(Orientation orient, unsigned int &w, unsigned int &h) {
121 if (orient == ROT0 || orient == ROT180) 121 if (orient == ROT0 || orient == ROT180)
122 return; 122 return;
123 123