aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-06-10 17:24:48 (GMT)
committerfluxgen <fluxgen>2006-06-10 17:24:48 (GMT)
commitd7a28bb75e2538cf7a01202610fd9e628d835e92 (patch)
tree54589124913eafd5c2725b47f2056042edeab505 /src
parente8f0be27c48034742d912ce5e659c6ca5b2dff16 (diff)
downloadfluxbox-d7a28bb75e2538cf7a01202610fd9e628d835e92.zip
fluxbox-d7a28bb75e2538cf7a01202610fd9e628d835e92.tar.bz2
fixed resize box bug. The text used to determine the size used space, which could have different width than characters on certain fonts. Thanks Scott Kuhl
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index a018c17..a382e89 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1814,7 +1814,7 @@ void BScreen::showPosition(int x, int y) {
1814 } 1814 }
1815 1815
1816 char label[256]; 1816 char label[256];
1817 sprintf(label, "X: %4d x Y: %4d", x, y); 1817 sprintf(label, "X:%5d x Y:%5d", x, y);
1818 1818
1819 m_pos_window.clear(); 1819 m_pos_window.clear();
1820 1820
@@ -1930,7 +1930,7 @@ void BScreen::renderGeomWindow() {
1930 1930
1931 sprintf(label, 1931 sprintf(label,
1932 _FBTEXT(Screen, GeometryFormat, 1932 _FBTEXT(Screen, GeometryFormat,
1933 "W: %4d x H: %4d", "Representative maximum sized text for width and height dialog").c_str(), 1933 "W: %04d x H: %04d", "Representative maximum sized text for width and height dialog").c_str(),
1934 0, 0); 1934 0, 0);
1935 1935
1936 int geom_h = winFrameTheme().font().height() + winFrameTheme().bevelWidth()*2; 1936 int geom_h = winFrameTheme().font().height() + winFrameTheme().bevelWidth()*2;
@@ -1972,7 +1972,7 @@ void BScreen::renderGeomWindow() {
1972void BScreen::renderPosWindow() { 1972void BScreen::renderPosWindow() {
1973 1973
1974 int pos_h = winFrameTheme().font().height() + winFrameTheme().bevelWidth()*2; 1974 int pos_h = winFrameTheme().font().height() + winFrameTheme().bevelWidth()*2;
1975 int pos_w = winFrameTheme().font().textWidth("0: 0000 x 0: 0000", 17) + winFrameTheme().bevelWidth()*2; 1975 int pos_w = winFrameTheme().font().textWidth("0:00000 x 0:00000", 17) + winFrameTheme().bevelWidth()*2;
1976 m_pos_window.resize(pos_w, pos_h); 1976 m_pos_window.resize(pos_w, pos_h);
1977 1977
1978 m_pos_window.setBorderWidth(winFrameTheme().border().width()); 1978 m_pos_window.setBorderWidth(winFrameTheme().border().width());