Minor adjustment for alpha=0 in floating tab borders

This commit is contained in:
David Capello 2015-03-24 15:19:42 -03:00
parent e506387dad
commit 7eefe4e3c6

View File

@ -750,10 +750,13 @@ void Tabs::createFloatingTab(Tab* tab)
// Make opaque (TODO this shouldn't be necessary)
{
she::ScopedSurfaceLock lock(surface);
gfx::Color mask = lock->getPixel(0, 0);
for (int y=0; y<surface->height(); ++y)
for (int x=0; x<surface->width(); ++x) {
gfx::Color c = lock->getPixel(x, y);
lock->putPixel(gfx::seta(c, 255), x, y);
c = (c != mask ? gfx::seta(c, 255): gfx::ColorNone);
lock->putPixel(c, x, y);
}
}