Skip to content

Commit e6f6031

Browse files
committed
Fix graphical glitches when compiling without DelphiCompat on windows
1 parent fad6f07 commit e6f6031

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Source/VirtualTrees.pas

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4751,6 +4751,16 @@ function ExcludeClipRect(dc: hdc; Left, Top, Right, Bottom : Integer) : Integer;
47514751
end;
47524752
{$endif}
47534753

4754+
// LCLIntf.BitBlt is not compatible with windows.BitBlt
4755+
// The former takes into account the alpha channel while the later not
4756+
4757+
{$if not defined(USE_DELPHICOMPAT) and defined(LCLWin)}
4758+
function BitBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc: Integer; Rop: DWORD): Boolean;
4759+
begin
4760+
Result := windows.BitBlt(DestDC, X, Y, Width, Height, SrcDC, XSrc, YSrc, Rop);
4761+
end;
4762+
{$endif}
4763+
47544764
//----------------- utility functions ----------------------------------------------------------------------------------
47554765

47564766
procedure ShowError(const Msg: String; HelpContext: Integer);

0 commit comments

Comments
 (0)