src/misc_gui.cpp
changeset 5890 45bd89352147
parent 5847 9ce114e1d90d
child 5919 2b58160d667d
--- a/src/misc_gui.cpp	Sat Jan 13 15:00:16 2007 +0000
+++ b/src/misc_gui.cpp	Sat Jan 13 15:00:40 2007 +0000
@@ -1016,6 +1016,8 @@
 	const Widget *wi = &w->widget[wid];
 	const Textbuf *tb = &string->text;
 
+	GfxFillRect(wi->left + 1, wi->top + 1, wi->right - 1, wi->bottom - 1, 215);
+
 	/* Limit the drawing of the string inside the widget boundaries */
 	if (!FillDrawPixelInfo(&dpi,
 	      wi->left + 4,
@@ -1024,8 +1026,6 @@
 	      wi->bottom - wi->top - 1)
 	) return;
 
-	GfxFillRect(wi->left + 1, wi->top + 1, wi->right - 1, wi->bottom - 1, 215);
-
 	old_dpi = _cur_dpi;
 	_cur_dpi = &dpi;