diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-02-03 15:37:01 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-02-03 15:37:01 (GMT) |
commit | b7eee2350d5179e7a54aec047223aa1422581447 (patch) | |
tree | a665542d847e66275bc79ca67042e1cac1f21b9b | |
parent | 39d4d0a01056178ec01977522ac99e589b15e4a8 (diff) | |
download | fluxbox-b7eee2350d5179e7a54aec047223aa1422581447.zip fluxbox-b7eee2350d5179e7a54aec047223aa1422581447.tar.bz2 |
fix rotation
-rw-r--r-- | src/FbTk/TextUtils.hh | 6 |
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 |
75 | inline void untranslateCoords(Orientation orient, int orig_x, int orig_y, unsigned int w, unsigned int h) { | 75 | inline 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 |
101 | inline void translatePosition(Orientation orient, int x, int y, unsigned int w, unsigned int h, unsigned int bw) { | 101 | inline 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 | ||
120 | inline void translateSize(Orientation orient, unsigned int w, unsigned int h) { | 120 | inline 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 | ||