You've already forked lazarus-ccr
jvcllaz: Fix JvPicClip demo occasionally showing black extracted images on 64-bit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6979 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1,13 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CONFIG>
|
||||
<ProjectOptions>
|
||||
<Version Value="12"/>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<General>
|
||||
<Flags>
|
||||
<CompatibilityMode Value="True"/>
|
||||
</Flags>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
<MainUnit Value="0"/>
|
||||
<Title Value="JvPicClipDemo"/>
|
||||
<Scaled Value="True"/>
|
||||
<ResourceType Value="res"/>
|
||||
|
@ -251,12 +251,12 @@ end;
|
||||
function TJvPicClip.GetGraphicCell(Index: Integer): TBitmap;
|
||||
begin
|
||||
CheckIndex(Index);
|
||||
AssignBitmapCell(Picture.Graphic, FBitmap, Cols, Rows, Index);
|
||||
if Picture.Graphic is TBitmap then
|
||||
if FPicture.Graphic is TBitmap then
|
||||
if FBitmap.PixelFormat <> pfDevice then
|
||||
FBitmap.PixelFormat := TBitmap(Picture.Graphic).PixelFormat;
|
||||
FBitmap.TransparentColor := FMaskColor or PaletteMask;
|
||||
FBitmap.Transparent := (FMaskColor <> clNone) and Masked;
|
||||
AssignBitmapCell(Picture.Graphic, FBitmap, Cols, Rows, Index);
|
||||
Result := FBitmap;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user