3DS: Fix GUIFontPrintf on hardware
Jeffrey Pfau jeffrey@endrift.com
Sun, 23 Aug 2015 19:31:13 -0700
1 files changed,
8 insertions(+),
6 deletions(-)
jump to
M
src/platform/3ds/gui-font.c
→
src/platform/3ds/gui-font.c
@@ -54,12 +54,14 @@ if (c > 0x7F) {
c = 0; } struct GUIFontGlyphMetric metric = defaultFontMetrics[c]; - sf2d_draw_texture_part_blend(font->tex, x, y - GLYPH_HEIGHT + metric.padding.top, - (c & 15) * CELL_WIDTH + metric.padding.left, - (c >> 4) * CELL_HEIGHT + metric.padding.top, - CELL_WIDTH - (metric.padding.left + metric.padding.right), - CELL_HEIGHT - (metric.padding.top + metric.padding.bottom), - color); + sf2d_draw_texture_part_blend(font->tex, + x - metric.padding.left, + y - GLYPH_HEIGHT, + (c & 15) * CELL_WIDTH, + (c >> 4) * CELL_HEIGHT, + CELL_WIDTH, + CELL_HEIGHT, + color); x += metric.width; } }