new background image
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user