LCL: default theme text drawing remove offset from pushed text. Neither win32 nor Gtk2 do that. Needed for consequent painting of glyph and text.

git-svn-id: trunk@50895 -
This commit is contained in:
ondrej 2015-12-18 09:29:35 +00:00
parent 997be6a69a
commit a511b3e510

View File

@ -2383,15 +2383,6 @@ begin
Canvas.TextRect(R, R.Left, R.Top, S, TXTStyle);
Canvas.Font.Color := clBtnShadow;
OffsetRect(R, -1, -1);
end
else
begin
// if pushed, move text 1 pixel right and down
if IsPushed(Details) then
begin
Inc(R.Left, 1);
Inc(R.Top, 1);
end;
end;
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) then
begin