win32: fix imagelist drawing if passed cx, cy = 0 (it means draw without stretch)

git-svn-id: trunk@20595 -
This commit is contained in:
paul 2009-06-12 14:05:30 +00:00
parent c8704da140
commit 4add4186ce

View File

@ -327,6 +327,10 @@ begin
end end
else else
begin begin
if ABounds.Right = 0 then
ABounds.Right := AList.Width;
if ABounds.Bottom = 0 then
ABounds.Bottom := AList.Height;
// use RawImage_PerformEffect to perform drawing effect // use RawImage_PerformEffect to perform drawing effect
AList.GetRawImage(AIndex, RawImg); AList.GetRawImage(AIndex, RawImg);
RawImg.PerformEffect(ADrawEffect, True); RawImg.PerformEffect(ADrawEffect, True);