Skip to content

Commit

Permalink
Added the scaling mode to empty textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
bXi committed Jun 19, 2024
1 parent 9b01d00 commit 74e85a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assethandler/assethandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit 74e85a8

Please sign in to comment.