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:
maxim 2016-07-19 22:23:45 +00:00
parent ad3e1137d9
commit 7d9500432d

View File

@ -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;