Browse Source

UPD: Optimizations

Alexander Koblov 6 years ago
parent
commit
ec646941d8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/platform/unix/ufolderthumb.pas

+ 2 - 2
src/platform/unix/ufolderthumb.pas

@@ -124,7 +124,7 @@ begin
 
         // Draw default folder icon
         Result:= PixMapManager.GetThemeIcon('folder', Min(aSize.cx, aSize.cy));
-        Source:= Result.CreateIntfImage;
+        Source:= TLazIntfImage.Create(Result.RawImage, False);
         try
           X:= (aSize.cx - Result.Width) div 2;
           Y:= (aSize.cy - Result.Height) div 2;
@@ -149,7 +149,7 @@ begin
         end;
 
         // Draw folder inner icon
-        Source:= ABitmap.CreateIntfImage;
+        Source:= TLazIntfImage.Create(ABitmap.RawImage, False);
         try
           X:= (aSize.cx - ABitmap.Width) div 2;
           Y:= (aSize.cy - ABitmap.Height) div 2;