mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-02 11:59:58 +00:00
Hide dithering options when we convert to non-Indexed
This commit is contained in:
parent
89acb421e0
commit
adbcc75fad
@ -254,8 +254,13 @@ private:
|
||||
if (visibleBounds.isEmpty())
|
||||
return;
|
||||
|
||||
doc::PixelFormat dstPixelFormat = item->pixelFormat();
|
||||
|
||||
if (m_ditheringSelector)
|
||||
m_ditheringSelector->setVisible(dstPixelFormat == doc::IMAGE_INDEXED);
|
||||
|
||||
m_image.reset(
|
||||
Image::create(item->pixelFormat(),
|
||||
Image::create(dstPixelFormat,
|
||||
visibleBounds.w,
|
||||
visibleBounds.h,
|
||||
m_imageBuffer));
|
||||
@ -278,7 +283,7 @@ private:
|
||||
m_image,
|
||||
m_editor->sprite(),
|
||||
m_editor->frame(),
|
||||
item->pixelFormat(),
|
||||
dstPixelFormat,
|
||||
ditheringAlgorithm(),
|
||||
ditheringMatrix(),
|
||||
visibleBounds.origin()));
|
||||
|
Loading…
Reference in New Issue
Block a user