mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 14:19:11 +02:00
LCL: TRawImage.PerformEffect: first check description then allocate mem
git-svn-id: trunk@34801 -
This commit is contained in:
parent
9adcf1b232
commit
6776c76423
@ -1631,6 +1631,10 @@ var
|
|||||||
P: Pointer;
|
P: Pointer;
|
||||||
i, j: integer;
|
i, j: integer;
|
||||||
begin
|
begin
|
||||||
|
// check here for Description. Only RGBA data can be processed here.
|
||||||
|
if not CheckDescription then
|
||||||
|
Exit;
|
||||||
|
|
||||||
if CreateNewData then
|
if CreateNewData then
|
||||||
begin
|
begin
|
||||||
GetMem(AData, DataSize);
|
GetMem(AData, DataSize);
|
||||||
@ -1643,11 +1647,6 @@ begin
|
|||||||
AData := P;
|
AData := P;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// check here for Description. Only RGBA data can be processed here.
|
|
||||||
if not CheckDescription then
|
|
||||||
Exit;
|
|
||||||
|
|
||||||
|
|
||||||
case ADrawEffect of
|
case ADrawEffect of
|
||||||
gdeNormal: ;
|
gdeNormal: ;
|
||||||
gdeDisabled:
|
gdeDisabled:
|
||||||
|
Loading…
Reference in New Issue
Block a user