mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:59:06 +02:00
(Qt): Fix for but #9367 - PaintStructure msg initialization.
git-svn-id: trunk@11746 -
This commit is contained in:
parent
990340aad8
commit
46f8083546
@ -1596,8 +1596,14 @@ begin
|
|||||||
QPaintEvent_Rect(QPaintEventH(Event), ClipRect);
|
QPaintEvent_Rect(QPaintEventH(Event), ClipRect);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Msg.DC := BeginPaint(THandle(Self), AStruct^);
|
Msg.DC := BeginPaint(THandle(Self), AStruct^);
|
||||||
FContext := Msg.DC;
|
FContext := Msg.DC;
|
||||||
|
|
||||||
|
Msg.PaintStruct^.rcPaint := PaintData.ClipRect^;
|
||||||
|
Msg.PaintStruct^.hdc := FContext;
|
||||||
|
|
||||||
|
|
||||||
with getClientBounds do
|
with getClientBounds do
|
||||||
SetWindowOrgEx(Msg.DC, -Left, -Top, nil);
|
SetWindowOrgEx(Msg.DC, -Left, -Top, nil);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user