mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
Minor adjustment for alpha=0 in floating tab borders
This commit is contained in:
parent
e506387dad
commit
7eefe4e3c6
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user