X Tutup
Skip to content

GRAPHICS: Remove overrideColor from ManagedSurface::transBlitFrom#6375

Merged
bluegr merged 2 commits intoscummvm:masterfrom
ccawley2011:rm-override-color
Dec 30, 2024
Merged

GRAPHICS: Remove overrideColor from ManagedSurface::transBlitFrom#6375
bluegr merged 2 commits intoscummvm:masterfrom
ccawley2011:rm-override-color

Conversation

@ccawley2011
Copy link
Member

The Sherlock engine was the only user of this feature, and it was only implemented for paletted surfaces. Removing it allows the ManagedSurface blitting code to be simplified a bit.

@bluegr
Copy link
Member

bluegr commented Dec 29, 2024

This looks like a useful feature... why remove it from common code?

@ccawley2011
Copy link
Member Author

This looks like a useful feature... why remove it from common code?

transBlitFrom is very complicated which makes it harder to optimise, which is why I want to try and reduce the amount of less common stuff that's being done from within a single function. Plus, as I mentioned earlier, it doesn't work if either surface uses a true colour pixel format.

@bluegr
Copy link
Member

bluegr commented Dec 30, 2024

Thanks for your work and explanation!

@bluegr bluegr merged commit 645f5d2 into scummvm:master Dec 30, 2024
@ccawley2011 ccawley2011 deleted the rm-override-color branch December 30, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup