mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Fix pink border in tabs on Allegro backend
This commit is contained in:
parent
95b0aec22e
commit
b659747a8c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user