diff --git a/src/widgets/editor/editor.cpp b/src/widgets/editor/editor.cpp index 67d32e22e..4638b8f14 100644 --- a/src/widgets/editor/editor.cpp +++ b/src/widgets/editor/editor.cpp @@ -673,14 +673,11 @@ void Editor::flashCurrentLayer() } } - drawSprite(0, 0, m_sprite->getWidth()-1, m_sprite->getHeight()-1); + drawSpriteSafe(0, 0, m_sprite->getWidth()-1, m_sprite->getHeight()-1); gui_flip_screen(); - vsync(); - rest(100); - image_clear(flash_image, flash_image->mask_color); - drawSprite(0, 0, m_sprite->getWidth()-1, m_sprite->getHeight()-1); + drawSpriteSafe(0, 0, m_sprite->getWidth()-1, m_sprite->getHeight()-1); } }