# HG changeset patch # User rubidium # Date 2009-09-23 15:42:29 # Node ID 0ebb9902e206602294ba6049c8665e963265c957 # Parent 51b77c2e4aae0cc1f27280bff22df4ef70d246f8 (svn r17620) -Fix (r17502): edit box offsets were off. Now they're still off, but look (in my opinion) even better than before diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1211,7 +1211,7 @@ void QueryString::DrawEditBox(Window *w, /* 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;