diff --git a/src/commands/cmd_play_animation.cpp b/src/commands/cmd_play_animation.cpp index 68184047e..e7e7db5f4 100644 --- a/src/commands/cmd_play_animation.cpp +++ b/src/commands/cmd_play_animation.cpp @@ -26,6 +26,7 @@ #include "modules/editors.h" #include "modules/gui.h" #include "modules/palettes.h" +#include "raster/image.h" #include "raster/palette.h" #include "raster/sprite.h" #include "widgets/editor.h" @@ -92,9 +93,14 @@ void PlayAnimationCommand::execute(Context* context) clear_keybuf(); - /* clear all the screen */ + // Clear all the screen clear_bitmap(ji_screen); + // Clear extras (e.g. pen preview) + sprite->prepareExtra(); + image_clear(sprite->getExtras(), + sprite->getExtras()->mask_color); + /* do animation */ oldpal = NULL; speed_timer = 0;