Skip to content

Commit 7751b26

Browse files
committed
Improve scaling of backgrounds
1 parent b8ddfe8 commit 7751b26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ThemeManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ SDL_Texture * ThemeManager::createBackgroundTexture(std::string filename) {
187187
if (texture == nullptr) {
188188
panic("couldn't create texture from surface: " + std::string(SDL_GetError()));
189189
}
190+
SDL_SetTextureScaleMode(texture, SDL_ScaleModeBest);
190191

191192
return texture;
192193
}

0 commit comments

Comments
 (0)