aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun
diff options
context:
space:
mode:
Diffstat (limited to 'util/fbrun')
-rw-r--r--util/fbrun/FbRun.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index b023a56..2adde5f 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbRun.cc,v 1.1 2002/08/20 02:04:34 fluxgen Exp $ 22// $Id: FbRun.cc,v 1.2 2002/09/03 10:55:02 fluxgen Exp $
23 23
24#include "FbRun.hh" 24#include "FbRun.hh"
25 25
@@ -40,7 +40,7 @@ m_bevel(4),
40m_gc(None), 40m_gc(None),
41m_end(false) { 41m_end(false) {
42 42
43 createWindow(x, y, width, m_font.height() + m_bevel); 43 createWindow(x, y, width + m_bevel, m_font.height());
44 // create GC 44 // create GC
45 XGCValues gcv; 45 XGCValues gcv;
46 46
@@ -110,7 +110,7 @@ void FbRun::move(int x, int y) {
110 110
111void FbRun::resize(size_t width, size_t height) { 111void FbRun::resize(size_t width, size_t height) {
112 assert(m_win); 112 assert(m_win);
113 XResizeWindow(m_display, m_win, width, height + m_bevel); 113 XResizeWindow(m_display, m_win, width, height);
114 m_width = width; 114 m_width = width;
115 m_height = height + m_bevel; 115 m_height = height + m_bevel;
116 setNoMaximize(); 116 setNoMaximize();
@@ -130,7 +130,7 @@ void FbRun::redrawLabel() {
130 assert(m_win); 130 assert(m_win);
131 131
132 XClearWindow(m_display, m_win); 132 XClearWindow(m_display, m_win);
133 drawString(0, m_height - m_bevel/2, 133 drawString(m_bevel/2, m_height - m_bevel/2,
134 m_runtext.c_str(), m_runtext.size()); 134 m_runtext.c_str(), m_runtext.size());
135 135
136} 136}