[aseprite] 178/250: Fix floating tab overlay for Tabs widget on Skia backend
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit a16c5b9846a697795fff42d3086b30c7d8c41ef7
Author: David Capello <davidcapello at gmail.com>
Date: Wed Oct 14 18:38:53 2015 -0300
Fix floating tab overlay for Tabs widget on Skia backend
---
src/app/ui/tabs.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/app/ui/tabs.cpp b/src/app/ui/tabs.cpp
index ed791bf..284cf56 100644
--- a/src/app/ui/tabs.cpp
+++ b/src/app/ui/tabs.cpp
@@ -919,13 +919,18 @@ void Tabs::createFloatingOverlay(Tab* tab)
// Fill the surface with pink color
{
she::ScopedSurfaceLock lock(surface);
+#ifdef USE_ALLEG4_BACKEND
lock->fillRect(gfx::rgba(255, 0, 255), gfx::Rect(0, 0, surface->width(), surface->height()));
+#else
+ lock->fillRect(gfx::rgba(0, 0, 0, 0), gfx::Rect(0, 0, surface->width(), surface->height()));
+#endif
}
{
Graphics g(surface, 0, 0);
g.setFont(getFont());
drawTab(&g, g.getClipBounds(), tab, 0, true, true);
}
+#ifdef USE_ALLEG4_BACKEND
// Make pink parts transparent (TODO remove this hack when we change the back-end to Skia)
{
she::ScopedSurfaceLock lock(surface);
@@ -937,6 +942,7 @@ void Tabs::createFloatingOverlay(Tab* tab)
lock->putPixel(c, x, y);
}
}
+#endif
m_floatingOverlay.reset(new Overlay(surface, gfx::Point(), Overlay::MouseZOrder-1));
OverlayManager::instance()->addOverlay(m_floatingOverlay.get());
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list