mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 04:29:25 +02:00
Gtk2: set proper ROP mode when using StretchBlt(), BitBlt() and StretchMaskBlt(). issue #23742
git-svn-id: trunk@62859 -
This commit is contained in:
parent
ff5b89a4f7
commit
bd841f4865
@ -4093,7 +4093,7 @@ var
|
||||
SrcDCOrigin: TPoint;
|
||||
DstDCOrigin: TPoint;
|
||||
SrcWholeWidth, SrcWholeHeight: integer;
|
||||
DstWholeWidth, DstWholeHeight: integer;
|
||||
DstWholeWidth, DstWholeHeight, AOldRop: integer;
|
||||
begin
|
||||
Result := IsValidDC(DestDC) and IsValidDC(SrcDC);
|
||||
{$IFDEF VerboseStretchCopyArea}
|
||||
@ -4266,6 +4266,7 @@ begin
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF VerboseGtkToDos}{$note tode remove, earlier checks require drawable <> nil}{$ENDIF}
|
||||
AOldRop := SetROP2(DestDC, Rop);
|
||||
if SrcDevContext.Drawable = nil
|
||||
then begin
|
||||
if DstDevContext.Drawable = nil
|
||||
@ -4281,6 +4282,7 @@ begin
|
||||
else
|
||||
Result := DrawableToDrawable;
|
||||
end;
|
||||
SetROP2(DestDC, AOldRop);
|
||||
|
||||
if TempPixmap <> nil
|
||||
then gdk_pixmap_unref(TempPixmap);
|
||||
|
Loading…
Reference in New Issue
Block a user