From dceb18207061a6268f8a7d6c142c1efd733ae305 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 30 Mar 2010 23:49:36 -0300 Subject: [PATCH] Added vsync to flashCurrentLayer. --- src/widgets/editor/editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/editor/editor.cpp b/src/widgets/editor/editor.cpp index 47baf6ce6..91563c4f8 100644 --- a/src/widgets/editor/editor.cpp +++ b/src/widgets/editor/editor.cpp @@ -559,6 +559,9 @@ void Editor::flashCurrentLayer() editor_draw_sprite(0, 0, m_sprite->getWidth()-1, m_sprite->getHeight()-1); gui_flip_screen(); + vsync(); + rest(1); + image_clear(flash_image, flash_image->mask_color); editor_draw_sprite(0, 0, m_sprite->getWidth()-1, m_sprite->getHeight()-1); }