Fix pink border in tabs on Allegro backend

This commit is contained in:
David Capello 2015-11-06 10:40:13 -03:00
parent 95b0aec22e
commit b659747a8c

View File

@ -938,7 +938,10 @@ void Tabs::createFloatingOverlay(Tab* tab)
for (int y=0; y<surface->height(); ++y)
for (int x=0; x<surface->width(); ++x) {
gfx::Color c = lock->getPixel(x, y);
c = (c != gfx::rgba(255, 0, 255) ? gfx::seta(c, 255): gfx::ColorNone);
c = (c != gfx::rgba(255, 0, 255, 0) &&
c != gfx::rgba(255, 0, 255, 255) ?
gfx::seta(c, 255):
gfx::ColorNone);
lock->putPixel(c, x, y);
}
}