KEMBAR78
GRAPHICS: Use standard palettes in ManagedSurface by ccawley2011 · Pull Request #4730 · scummvm/scummvm · GitHub
Skip to content

Conversation

@ccawley2011
Copy link
Member

@ccawley2011 ccawley2011 commented Feb 22, 2023

This is a follow up to PR #4541.

@digitall
Copy link
Member

@ccawley2011 : I would prefer to close this in favor of using PR #4731 instead. OK with you?

@ccawley2011
Copy link
Member Author

@ccawley2011 : I would prefer to close this in favor of using PR #4731 instead. OK with you?

The two PRs do different things, though. PR #4731 removes the deprecated API so that users of ManagedSurface aren't dependent on the format of the palette, while this PR changes the format of the palette to allow code reuse, which is why the old API was deprecated in the first place.

@digitall
Copy link
Member

@ccawley2011 : Ah, OK. So what happens now? i.e. merge both, merge one or the other?

Copy link
Member

@lephilousophe lephilousophe left a comment

Choose a reason for hiding this comment

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

This looks good to me.
The alpha in palette seem to not be used anywhere so this simplifies things.
I suppose the code has been done just in case and there is no use of it.

There is one small fix to do and conflicts to repair but that should be easy. :D

@ccawley2011 ccawley2011 force-pushed the managed-surface-palette-pt2 branch from 36ec925 to 9f6b8ba Compare February 26, 2023 17:05
@sev-
Copy link
Member

sev- commented Mar 5, 2023

This is a good change. I always wondered why ManagedSurface used a non-standard palette format.

It requires rebasing, though

@ccawley2011 ccawley2011 force-pushed the managed-surface-palette-pt2 branch from 9f6b8ba to 125640f Compare March 16, 2023 19:25
@ccawley2011
Copy link
Member Author

It requires rebasing, though

OK, done.

@ccawley2011 ccawley2011 marked this pull request as ready for review March 16, 2023 19:27
@sev-
Copy link
Member

sev- commented Mar 24, 2023

Thank you!

@sev- sev- merged commit ee35a3d into scummvm:master Mar 24, 2023
@ccawley2011 ccawley2011 deleted the managed-surface-palette-pt2 branch March 24, 2023 20:33
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.

5 participants