Disable Editor::flashCurrentLayer() anyway because it needs hardware acceleration for the required effect.

This commit is contained in:
David Capello 2012-02-11 22:33:07 -03:00
parent fe03919b1d
commit 34eef40876

View File

@ -651,6 +651,10 @@ void Editor::drawGrid(const Rect& gridBounds, const Color& color)
void Editor::flashCurrentLayer()
{
#if 0 // TODO this flash effect can be done
// only with hardware acceleration.
// Finish it when the
// Allegro 5 port is ready.
int x, y;
const Image* src_image = m_sprite->getCurrentImage(&x, &y);
if (src_image) {
@ -679,6 +683,7 @@ void Editor::flashCurrentLayer()
image_clear(flash_image, flash_image->mask_color);
drawSpriteSafe(0, 0, m_sprite->getWidth()-1, m_sprite->getHeight()-1);
}
#endif
}
void Editor::controlInfiniteScroll(Message* msg)