Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI: Only use a transparent colour for BMP images #4819

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccawley2011
Copy link
Member

By doing this, we can assume that colour keys and alpha channels are mutually exclusive, which allows for future optimisation.

@@ -721,6 +724,9 @@ bool ThemeEngine::addBitmap(const Common::String &filename, const Common::String
delete surf;

surf = new Graphics::ManagedSurface(tmp2);

if (surf->hasTransparentColor())
surf->setTransparentColor(surf->getTransparentColor());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks kind of counter intuitive.
Is this really what was intended?

@sev-
Copy link
Member

sev- commented Mar 24, 2023

@ccawley2011 what is the status of this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants