From 69a50e4d9d874e65e477b46b66760b897fe85688 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 30 Mar 2010 21:49:35 -0300 Subject: [PATCH] Fixed: cursor preview is not shown anymore when animation is being played. --- src/commands/cmd_play_animation.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;