lcl: fixed TCDDrawerMac.DrawMacSquareButton y

git-svn-id: trunk@49646 -
This commit is contained in:
mattias 2015-08-11 12:28:07 +00:00
parent 348bc7ef4c
commit f6e1445ede

View File

@ -161,7 +161,7 @@ begin
ADest.Font.FPColor := colWhite;
Str := AStateEx.Caption;
lPosX := ADestPos.X + (ASize.cx - lDest.TextWidth(Str)) div 2;
lPosX := ADestPos.Y + (ASize.cy - lDest.TextHeight(Str)) div 2;
lPosY := ADestPos.Y + (ASize.cy - lDest.TextHeight(Str)) div 2;
lDest.TextOut(lPosX, lPosY, Str);
end;