new background image

This commit is contained in:
2025-12-18 07:20:20 +01:00
parent 0ab7121c5b
commit 989b98002c
11 changed files with 233 additions and 27 deletions

View File

@ -1001,6 +1001,10 @@ int main(int, char **)
// HELP - show inline help HUD in the MenuState
if (menuState) menuState->showHelpPanel(true);
break;
case ui::BottomMenuItem::About:
// ABOUT - show inline about HUD in the MenuState
if (menuState) menuState->showAboutPanel(true);
break;
case ui::BottomMenuItem::Exit:
showExitConfirmPopup = true;
exitPopupSelectedButton = 1;
@ -1792,6 +1796,9 @@ int main(int, char **)
drawH
};
SDL_SetTextureBlendMode(mainScreenTex, SDL_BLENDMODE_BLEND);
// Use linear filtering for the scaled overlay to avoid single-pixel aliasing
// artifacts (e.g. a tiny static dot) when the PNG is resized.
SDL_SetTextureScaleMode(mainScreenTex, SDL_SCALEMODE_LINEAR);
SDL_RenderTexture(renderer, mainScreenTex, nullptr, &dst);
}
SDL_SetRenderViewport(renderer, &logicalVP);