From 74e85a804026e3ddd02e6f1fb480f4ef49201fb7 Mon Sep 17 00:00:00 2001 From: Dennis Meinen Date: Wed, 19 Jun 2024 20:16:52 +0200 Subject: [PATCH] Added the scaling mode to empty textures. --- assethandler/assethandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assethandler/assethandler.cpp b/assethandler/assethandler.cpp index b9ecc7c..62399a8 100644 --- a/assethandler/assethandler.cpp +++ b/assethandler/assethandler.cpp @@ -67,7 +67,8 @@ TextureAsset AssetHandler::_createEmptyTexture(const vf2d &size) { texture.texture = SDL_CreateTexture(Window::GetRenderer(), SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, (int) size.x, (int) size.y); - SDL_SetTextureBlendMode(texture.texture, SDL_BLENDMODE_BLEND); + SDL_SetTextureScaleMode(texture.texture, (SDL_ScaleMode)defaultMode); + return texture; } @@ -152,7 +153,6 @@ Music AssetHandler::_getMusic(const std::string &fileName) { } } - Font AssetHandler::_getFont(const std::string &fileName, const int fontSize) { std::string index = std::string(Helpers::TextFormat("%s%d", fileName.c_str(), fontSize));