Forráskód Böngészése

use icon cursor suggested bit depth

johann 5 éve
szülő
commit
839ee06b25
1 módosított fájl, 4 hozzáadás és 1 törlés
  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;