mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 07:29:27 +02:00
Merged revision(s) 52704 #687d82e68e from trunk:
win32: initialize PS (TPaintStruct) in paint message handling when ControlDC <> 0. Issue #30275 ........ git-svn-id: branches/fixes_1_6@52722 -
This commit is contained in:
parent
ad3e1137d9
commit
7d9500432d
@ -665,6 +665,9 @@ begin
|
||||
Windows.DeleteObject(PaintRegion);
|
||||
end;
|
||||
end else begin
|
||||
FillChar(PS, SizeOf(PS), 0);
|
||||
PS.hdc := ControlDC;
|
||||
Windows.GetUpdateRect(Window, @PS.rcPaint, False);
|
||||
DC := ControlDC;
|
||||
PaintRegion := 0;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user