mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 18:40:24 +02:00
Carbon: assign Ps.hdc in carbonwinapi BeginPaint, fixes few crashes
git-svn-id: trunk@33946 -
This commit is contained in:
parent
3860a587ee
commit
df502ab1be
@ -43,6 +43,7 @@ end;
|
|||||||
function TCarbonWidgetSet.BeginPaint(Handle: hWnd; var PS: TPaintStruct): hdc;
|
function TCarbonWidgetSet.BeginPaint(Handle: hWnd; var PS: TPaintStruct): hdc;
|
||||||
begin
|
begin
|
||||||
Result:=inherited BeginPaint(Handle, PS);
|
Result:=inherited BeginPaint(Handle, PS);
|
||||||
|
PS.hdc:=Result;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user