summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-23 15:42:29 +0000
committerrubidium <rubidium@openttd.org>2009-09-23 15:42:29 +0000
commita848fda8808c5bb70fee2117dae1eda9648f346c (patch)
tree5e0ececdb2c644ad7cf9034ee906c000d58ab600 /src
parent92c4831bf2ff28af5b4b1bd4e7f1fab74f51c77f (diff)
downloadopenttd-a848fda8808c5bb70fee2117dae1eda9648f346c.tar.xz
(svn r17620) -Fix (r17502): edit box offsets were off. Now they're still off, but look (in my opinion) even better than before
Diffstat (limited to 'src')
-rw-r--r--src/misc_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 6deb164a8..2be40ee84 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1211,7 +1211,7 @@ void QueryString::DrawEditBox(Window *w, int wid)
/* Limit the drawing of the string inside the widget boundaries */
DrawPixelInfo dpi;
- if (!FillDrawPixelInfo(&dpi, left + WD_FRAMETEXT_LEFT, top + WD_FRAMERECT_TOP, right - left - WD_FRAMETEXT_RIGHT, bottom - top - WD_FRAMERECT_BOTTOM)) return;
+ if (!FillDrawPixelInfo(&dpi, left + WD_FRAMERECT_LEFT, top + WD_FRAMERECT_TOP, right - left - WD_FRAMERECT_RIGHT, bottom - top - WD_FRAMERECT_BOTTOM)) return;
DrawPixelInfo *old_dpi = _cur_dpi;
_cur_dpi = &dpi;