Skip to content

Commit dda5ecb

Browse files
ProPukeslouken
authored andcommitted
fixed: sdf characters were misaligned (char rects were not expanded to the bottom right to include sdf spread)
(cherry picked from commit 053bbc8)
1 parent e8844c1 commit dda5ecb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/SDL_ttf.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,8 +1503,6 @@ static bool Render_Line_TextEngine(TTF_Font *font, TTF_Direction direction, int
15031503
if (glyph_font->render_sdf) {
15041504
op->copy.dst.x -= DEFAULT_SDF_SPREAD;
15051505
op->copy.dst.y -= DEFAULT_SDF_SPREAD;
1506-
op->copy.dst.w -= DEFAULT_SDF_SPREAD;
1507-
op->copy.dst.h -= DEFAULT_SDF_SPREAD;
15081506
}
15091507
} else {
15101508
// Use the distance to the next glyph as our bounds width

0 commit comments

Comments
 (0)