Merge pull request #12682 from QuarkTheAwesome/wiiu-fontalias

(Wii U) Font rendering fixes
This commit is contained in:
Autechre 2021-07-20 14:58:34 +02:00 committed by GitHub
commit 28043d88b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ static void* wiiu_font_init_font(void* data, const char* font_path,
font->texture.viewNumSlices = 1;
font->texture.surface.format = GX2_SURFACE_FORMAT_UNORM_R8;
font->texture.compMap = GX2_COMP_SEL(_R, _R, _R, _R);
font->texture.compMap = GX2_COMP_SEL(_1, _1, _1, _R);
GX2CalcSurfaceSizeAndAlignment(&font->texture.surface);
GX2InitTextureRegs(&font->texture);
@ -258,7 +258,7 @@ static void wiiu_font_render_message(
return;
}
line_height = scale / line_metrics->height;
line_height = line_metrics->height * scale / wiiu->vp.height;
for (;;)
{