mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-02-19 18:36:42 +01:00
win32: fix imagelist drawing if passed cx, cy = 0 (it means draw without stretch)
git-svn-id: trunk@20595 -
This commit is contained in:
parent
c8704da140
commit
4add4186ce
@ -327,6 +327,10 @@ begin
|
||||
end
|
||||
else
|
||||
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
|
||||
AList.GetRawImage(AIndex, RawImg);
|
||||
RawImg.PerformEffect(ADrawEffect, True);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user