From fe03919b1de008f13c6a5fcd702664efeb12cca8 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 11 Feb 2012 22:32:32 -0300 Subject: [PATCH] Fix problems in the Editor::flashCurrentLayer() drawing outside the safe editor area. --- src/widgets/editor/editor.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); } }