jvcllaz: Workaround for linux crashing in JvAnimatedImage.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6731 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
54505768ae
commit
fda7b5211c
@ -645,12 +645,13 @@ begin
|
||||
(ClientHeight - FImageHeight) div 2, FImageWidth, FImageHeight)
|
||||
else
|
||||
DstRect := Rect(0, 0, FImageWidth, FImageHeight);
|
||||
//Canvas.CopyRect(DstRect, FGlyph.Canvas, SrcRect);
|
||||
// Canvas.StretchDraw(DstRect, FGlyph);
|
||||
//{ original code:
|
||||
|
||||
{$IFDEF WINDOWS}
|
||||
StretchBitmapRectTransparent(Canvas, DstRect.Left, DstRect.Top, DstRect.Right - DstRect.Left,
|
||||
DstRect.Bottom - DstRect.Top, SrcRect, FGlyph, FTransparentColor);
|
||||
//}
|
||||
{$ELSE}
|
||||
Canvas.CopyRect(DstRect, FGlyph.Canvas, SrcRect);
|
||||
{$ENDIF}
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user