diff engine/core/gui/widgets/clicklabel.cpp @ 255:51cc05d862f2

Merged editor_rewrite branch to trunk. This contains changes that may break compatibility against existing clients. For a list of changes that may affect your client, see: http://wiki.fifengine.de/Changes_to_pychan_and_FIFE_in_editor_rewrite_branch
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 08 Jun 2009 16:00:02 +0000
parents 756b895e1dab
children
line wrap: on
line diff
--- a/engine/core/gui/widgets/clicklabel.cpp	Wed Jun 03 19:29:52 2009 +0000
+++ b/engine/core/gui/widgets/clicklabel.cpp	Mon Jun 08 16:00:02 2009 +0000
@@ -88,6 +88,8 @@
 		int textX = 0;
 		int textY = 0;
 
+		graphics->setColor(getBackgroundColor());
+		graphics->fillRectangle(Rectangle(1, 1, getDimension().width-1, getHeight() - 1));
 		if (mGuiFont) {
 			if( isTextWrapping() ) {
 				mGuiFont->drawMultiLineString(graphics, mWrappedText, textX, textY);