X Tutup
Skip to content

FREESCAPE: Reduce pixel format conversion when loading images#6744

Merged
bluegr merged 1 commit intoscummvm:masterfrom
ccawley2011:freescape-pixel-format
Jun 30, 2025
Merged

FREESCAPE: Reduce pixel format conversion when loading images#6744
bluegr merged 1 commit intoscummvm:masterfrom
ccawley2011:freescape-pixel-format

Conversation

@ccawley2011
Copy link
Member

No description provided.

@ccawley2011 ccawley2011 force-pushed the freescape-pixel-format branch from 712d0cc to 357437c Compare June 19, 2025 12:46
@ccawley2011 ccawley2011 requested a review from neuromancer June 19, 2025 16:49
namespace Image {

ScrDecoder::ScrDecoder() : _surface(nullptr), _palette(0) {
static const byte scrPalette[16 * 3] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this was hardcoded here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It doesn't seem to be possible to specify an alternative palette within the file, and it's small enough (48 bytes) that it's probably not worth generating it at runtime.

@neuromancer
Copy link
Contributor

Tested it and it works fine, let's merge it

@bluegr
Copy link
Member

bluegr commented Jun 30, 2025

Thanks for your work!

@bluegr bluegr merged commit dd5ff1e into scummvm:master Jun 30, 2025
8 checks passed
@ccawley2011 ccawley2011 deleted the freescape-pixel-format branch June 30, 2025 14:57
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.

3 participants

X Tutup