mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
csBrushValid is not required for DrawFocusRect, fixed warning msg in TWin32WidgetSet.DrawFocusRect, tnks Vincent
git-svn-id: trunk@9295 -
This commit is contained in:
parent
47948ab39e
commit
8bb640c7fd
@ -38,7 +38,7 @@ end;
|
||||
procedure TCanvas.DrawFocusRect(const ARect: TRect);
|
||||
begin
|
||||
Changing;
|
||||
RequiredState([csHandleValid, csBrushValid]);
|
||||
RequiredState([csHandleValid]);
|
||||
LCLIntf.DrawFocusRect(FHandle, ARect);
|
||||
Changed;
|
||||
end;
|
||||
|
@ -1084,7 +1084,7 @@ function TWin32WidgetSet.DrawFocusRect(DC: HDC; const Rect: TRect): boolean;
|
||||
var
|
||||
lRect: Windows.RECT;
|
||||
begin
|
||||
{$message warn TWin32WidgetSet.FrameRect TODO: optimize ARect copying?}
|
||||
{$message warn TWin32WidgetSet.DrawFocusRect TODO: optimize Rect copying}
|
||||
lRect:=Rect;
|
||||
Result:= Windows.DrawFocusRect(DC, lRect);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user