Fixed: cursor preview is not shown anymore when animation is being played.

This commit is contained in:
David Capello 2010-03-30 21:49:35 -03:00
parent 735b65072e
commit 69a50e4d9d

View File

@ -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;