LCL-CustomDrawn: Improves DrawFocusRect to keep the canvas state

git-svn-id: trunk@36611 -
This commit is contained in:
sekelsenmat 2012-04-06 14:17:32 +00:00
parent b2d4e3fd19
commit e01c9d3a71

View File

@ -1057,8 +1057,11 @@ begin
if not IsValidDC(DC) then exit;
// Drawer.DrawFocusRect alters the Pen and Brush, so we save the state here
LazDC.SaveState();
GetDefaultDrawer().DrawFocusRect(LazDC, Point(Rect.Left, Rect.Top),
Size(Rect.Right - Rect.Left, Rect.Bottom - Rect.Top));
LazDC.RestoreState(-1);
end;
function TCDWidgetSet.DrawFrameControl(DC: HDC; const Rect: TRect; uType,