mirror of https://github.com/OpenTTD/OpenTTD
(svn r17620) -Fix (r17502): edit box offsets were off. Now they're still off, but look (in my opinion) even better than before
parent
92c4831bf2
commit
a848fda880
|
@ -1211,7 +1211,7 @@ void QueryString::DrawEditBox(Window *w, int wid)
|
||||||
|
|
||||||
/* Limit the drawing of the string inside the widget boundaries */
|
/* Limit the drawing of the string inside the widget boundaries */
|
||||||
DrawPixelInfo dpi;
|
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;
|
DrawPixelInfo *old_dpi = _cur_dpi;
|
||||||
_cur_dpi = &dpi;
|
_cur_dpi = &dpi;
|
||||||
|
|
Loading…
Reference in New Issue