Explorar o código

use icon cursor suggested bit depth

johann %!s(int64=5) %!d(string=hai) anos
pai
achega
839ee06b25
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lazpaint/dialog/usaveoption.pas

+ 4 - 1
lazpaint/dialog/usaveoption.pas

@@ -949,7 +949,10 @@ end;
 
 function TFSaveOption.GetOriginalBitDepth: integer;
 begin
-  result := BGRARequiredBitDepth(FFlattenedOriginal, acFullChannelInPalette);
+  if ImageFormat in[ifIco,ifCur] then
+    result := BGRABitDepthIconCursor(FFlattenedOriginal)
+  else
+    result := BGRARequiredBitDepth(FFlattenedOriginal, acFullChannelInPalette);
 end;
 
 procedure TFSaveOption.DoUpdateBitmap;