Skip to content

Commit e58e817

Browse files
authored
chore: update draw.cpp (#28)
1 parent 4564e39 commit e58e817

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/draw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ void asw::draw::text(const asw::Font& font,
132132
SDL_Texture* textTexture =
133133
SDL_CreateTextureFromSurface(asw::display::renderer, textSurface);
134134

135+
SDL_SetTextureBlendMode(textTexture, SDL_BLENDMODE_BLEND);
136+
SDL_SetTextureScaleMode(textTexture, SDL_SCALEMODE_NEAREST);
137+
135138
SDL_FRect dest;
136139
dest.x = position.x;
137140
dest.y = position.y;

0 commit comments

Comments
 (0)