mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 03:00:27 +02:00
LCL-CustomDrawn: Improves DrawFocusRect to keep the canvas state
git-svn-id: trunk@36611 -
This commit is contained in:
parent
b2d4e3fd19
commit
e01c9d3a71
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user