all repos — mgba @ d357b9328505447b15cd442a89b5e8f54953e455

mGBA Game Boy Advance Emulator

Ports: Make substitution character less confusing
Jeffrey Pfau jeffrey@endrift.com
Sun, 01 Nov 2015 09:17:01 -0800
commit

d357b9328505447b15cd442a89b5e8f54953e455

parent

b99b680ca2dbab6fa3063d98d3e3a3ab8ce98cf0

3 files changed, 5 insertions(+), 5 deletions(-)

jump to
M src/platform/3ds/gui-font.csrc/platform/3ds/gui-font.c

@@ -60,7 +60,7 @@ void GUIFontDrawGlyph(const struct GUIFont* font, int glyph_x, int glyph_y, uint32_t color, uint32_t glyph) {

ctrActivateTexture(&font->texture); if (glyph > 0x7F) { - glyph = 0; + glyph = '?'; } struct GUIFontGlyphMetric metric = defaultFontMetrics[glyph];
M src/platform/psp2/gui-font.csrc/platform/psp2/gui-font.c

@@ -40,14 +40,14 @@

unsigned GUIFontGlyphWidth(const struct GUIFont* font, uint32_t glyph) { UNUSED(font); if (glyph > 0x7F) { - glyph = 0; + glyph = '?'; } return defaultFontMetrics[glyph].width * 2; } void GUIFontDrawGlyph(const struct GUIFont* font, int x, int y, uint32_t color, uint32_t glyph) { if (glyph > 0x7F) { - glyph = 0; + glyph = '?'; } struct GUIFontGlyphMetric metric = defaultFontMetrics[glyph]; vita2d_draw_texture_tint_part_scale(font->tex, x, y + (-GLYPH_HEIGHT + metric.padding.top) * 2,
M src/platform/wii/gui-font.csrc/platform/wii/gui-font.c

@@ -48,7 +48,7 @@

unsigned GUIFontGlyphWidth(const struct GUIFont* font, uint32_t glyph) { UNUSED(font); if (glyph > 0x7F) { - glyph = 0; + glyph = '?'; } return defaultFontMetrics[glyph].width; }

@@ -66,7 +66,7 @@ GX_SetVtxAttrFmt(GX_VTXFMT0, GX_VA_TEX0, GX_TEX_ST, GX_F32, 0);

GX_SetVtxAttrFmt(GX_VTXFMT0, GX_VA_CLR0, GX_CLR_RGBA, GX_RGBA8, 0); if (glyph > 0x7F) { - glyph = 0; + glyph = '?'; } struct GUIFontGlyphMetric metric = defaultFontMetrics[glyph]; s16 tx = (glyph & 15) * CELL_WIDTH + metric.padding.left;