mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-02 17:09:51 +02:00
lcl: fixed TCDDrawerMac.DrawMacSquareButton y
git-svn-id: trunk@49646 -
This commit is contained in:
parent
348bc7ef4c
commit
f6e1445ede
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user