mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 06:57:54 +02:00
LCL: TLazIntfImage: After revision 60360 #71e6fd3e59 it isn't needed to call CreateData when Create is called with size and description flags.
git-svn-id: trunk@60361 -
This commit is contained in:
parent
71e6fd3e59
commit
05aa1b08f9
@ -406,7 +406,6 @@ begin
|
||||
IconImage.RawImageNeeded(false);
|
||||
RawImg := IconImage.FImage;
|
||||
IntfImage := TLazIntfImage.Create(IconImage.Width, IconImage.Height, [riqfRGB, riqfAlpha, riqfUpdate]);
|
||||
IntfImage.CreateData;
|
||||
try
|
||||
SrcImage := TLazIntfImage.Create(RawImg, False);
|
||||
try
|
||||
|
@ -1285,7 +1285,6 @@ function TWidgetSet.GradientFill(DC: HDC; Vertices: PTriVertex; NumVertices: Lon
|
||||
function CreateIntfImage(W, H: Integer; Clear: Boolean): TLazIntfImage;
|
||||
begin
|
||||
Result := TLazIntfImage.Create(W, H, [riqfRGB, riqfAlpha, riqfUpdate]);
|
||||
Result.CreateData;
|
||||
if Clear then
|
||||
Result.FillPixels(FPColor(0, 0, 0, $0000));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user