mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
Fixed: cursor preview is not shown anymore when animation is being played.
This commit is contained in:
parent
735b65072e
commit
69a50e4d9d
@ -26,6 +26,7 @@
|
|||||||
#include "modules/editors.h"
|
#include "modules/editors.h"
|
||||||
#include "modules/gui.h"
|
#include "modules/gui.h"
|
||||||
#include "modules/palettes.h"
|
#include "modules/palettes.h"
|
||||||
|
#include "raster/image.h"
|
||||||
#include "raster/palette.h"
|
#include "raster/palette.h"
|
||||||
#include "raster/sprite.h"
|
#include "raster/sprite.h"
|
||||||
#include "widgets/editor.h"
|
#include "widgets/editor.h"
|
||||||
@ -92,9 +93,14 @@ void PlayAnimationCommand::execute(Context* context)
|
|||||||
|
|
||||||
clear_keybuf();
|
clear_keybuf();
|
||||||
|
|
||||||
/* clear all the screen */
|
// Clear all the screen
|
||||||
clear_bitmap(ji_screen);
|
clear_bitmap(ji_screen);
|
||||||
|
|
||||||
|
// Clear extras (e.g. pen preview)
|
||||||
|
sprite->prepareExtra();
|
||||||
|
image_clear(sprite->getExtras(),
|
||||||
|
sprite->getExtras()->mask_color);
|
||||||
|
|
||||||
/* do animation */
|
/* do animation */
|
||||||
oldpal = NULL;
|
oldpal = NULL;
|
||||||
speed_timer = 0;
|
speed_timer = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user