Skip to content

Fix mapper not rendering anything on SDL2/Windows - #5798

Merged
joncampbell123 merged 2 commits into
masterfrom
fix-blank-mapper-sdl2
Aug 22, 2025
Merged

Fix mapper not rendering anything on SDL2/Windows#5798
joncampbell123 merged 2 commits into
masterfrom
fix-blank-mapper-sdl2

Conversation

@aybe

@aybe aybe commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

What issue(s) does this PR address?

Since my last contribution, the mapper would stubbornly render as a black screen.
After debugging, DOSBox_SetMenu is what makes the SDL surface become invalid.
Not sure why, maybe it's Windows' fault... But initializing it after fixes the problem.

Comment thread src/gui/sdl_mapper.cpp

void UpdateMapperSurface()
{
mapper.surface = SDL_GetWindowSurface(mapper.window);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This function shall do nothing for SDL1 builds in order to fix the build failure.

@joncampbell123
joncampbell123 merged commit 6327afe into master Aug 22, 2025
42 of 44 checks passed
@aybe
aybe deleted the fix-blank-mapper-sdl2 branch August 26, 2025 15: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