From 1941bfd9e5f12be9954c61592fbc63cb77d21f44 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 3 Sep 2002 10:55:02 +0000 Subject: minor bevel issues --- util/fbrun/FbRun.cc | 8 ++++---- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbRun.cc,v 1.1 2002/08/20 02:04:34 fluxgen Exp $ +// $Id: FbRun.cc,v 1.2 2002/09/03 10:55:02 fluxgen Exp $ #include "FbRun.hh" @@ -40,7 +40,7 @@ m_bevel(4), m_gc(None), m_end(false) { - createWindow(x, y, width, m_font.height() + m_bevel); + createWindow(x, y, width + m_bevel, m_font.height()); // create GC XGCValues gcv; @@ -110,7 +110,7 @@ void FbRun::move(int x, int y) { void FbRun::resize(size_t width, size_t height) { assert(m_win); - XResizeWindow(m_display, m_win, width, height + m_bevel); + XResizeWindow(m_display, m_win, width, height); m_width = width; m_height = height + m_bevel; setNoMaximize(); @@ -130,7 +130,7 @@ void FbRun::redrawLabel() { assert(m_win); XClearWindow(m_display, m_win); - drawString(0, m_height - m_bevel/2, + drawString(m_bevel/2, m_height - m_bevel/2, m_runtext.c_str(), m_runtext.size()); } -- cgit v0.11.2