icon button text shall not overlap with icon image (#767)

Tobias Zwick 2012-10-27 18:55:21 +02:00
parent f42a2933dc
commit 299a53eb86
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ namespace C4GUI
if (sText.getLength())
{
CStdFont &rUseFont = pCustomFont ? *pCustomFont : ::GraphicsResource.TextFont;
pDraw->TextOut(sText.getData(), rUseFont, 1.0f, cgo.Surface, x0+rcBounds.Wdt/2, y0+rcBounds.Hgt-rUseFont.GetLineHeight()*4/5, pCustomFont ? dwCustomFontClr : C4GUI_CaptionFontClr, ACenter);
pDraw->TextOut(sText.getData(), rUseFont, 1.0f, cgo.Surface, x0+rcBounds.Wdt/2, y0+rcBounds.Hgt, pCustomFont ? dwCustomFontClr : C4GUI_CaptionFontClr, ACenter);
}
}