mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +00:00
Fix copy & paste from Indexed to RGB (use the clipboard palette)
This commit is contained in:
parent
78ce233756
commit
6262366e91
@ -186,7 +186,6 @@ void clipboard::paste()
|
||||
#endif
|
||||
|
||||
Sprite* sprite = editor->getDocument()->getSprite();
|
||||
|
||||
if (clipboard_image == NULL)
|
||||
return;
|
||||
|
||||
@ -196,11 +195,10 @@ void clipboard::paste()
|
||||
src_image = clipboard_image;
|
||||
else {
|
||||
RgbMap* rgbmap = sprite->getRgbMap(editor->getFrame());
|
||||
src_image = quantization::convert_pixel_format(clipboard_image,
|
||||
sprite->getPixelFormat(), DITHERING_NONE,
|
||||
rgbmap,
|
||||
sprite->getPalette(editor->getFrame()),
|
||||
false);
|
||||
src_image = quantization::convert_pixel_format(
|
||||
clipboard_image, sprite->getPixelFormat(),
|
||||
DITHERING_NONE, rgbmap, clipboard_palette,
|
||||
false);
|
||||
}
|
||||
|
||||
// Change to MovingPixelsState
|
||||
|
Loading…
x
Reference in New Issue
Block a user