mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-25 20:11:53 +01:00
Revert the r35872 #c293be9ecf. It solved the windows problem but created another redraw problem with GTK2.
git-svn-id: trunk@35873 -
This commit is contained in:
parent
c293be9ecf
commit
d7dc003371
@ -3280,6 +3280,7 @@ end;
|
||||
procedure TControl.InvalidateControl(CtrlIsVisible, CtrlIsOpaque: Boolean);
|
||||
var
|
||||
Rect: TRect;
|
||||
Pt: TPoint;
|
||||
|
||||
function BackgroundClipped: Boolean;
|
||||
var
|
||||
@ -3316,8 +3317,11 @@ begin
|
||||
// Note: it should invalidate, when this control is loaded/destroyed, but parent not
|
||||
|
||||
if (CtrlIsVisible or ((csDesigning in ComponentState)
|
||||
and not (csNoDesignVisible in ControlStyle))) then begin
|
||||
and not (csNoDesignVisible in ControlStyle)))
|
||||
then begin
|
||||
Pt := Parent.GetClientScrollOffset;
|
||||
Rect := BoundsRect;
|
||||
OffsetRect(Rect, -Pt.X, -Pt.Y);
|
||||
InvalidateRect(Parent.Handle, @Rect, not (CtrlIsOpaque or
|
||||
(csOpaque in Parent.ControlStyle) or BackgroundClipped));
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user