fatal: add line spacing func, improve 565->888 for blending

This commit is contained in:
Michael Scire
2018-11-13 13:28:05 -08:00
parent 560d899a9b
commit 1bface09d5
3 changed files with 10 additions and 4 deletions

View File

@@ -132,6 +132,10 @@ void FontManager::SetPosition(u32 x, u32 y) {
g_cur_y = y;
}
void FontManager::AddSpacingLines(float num_lines) {
g_cur_y += static_cast<u32>((static_cast<float>(g_face->size->metrics.height) * num_lines) / 64.0f);
}
void FontManager::ConfigureFontFramebuffer(u16 *fb, u32 (*unswizzle_func)(u32, u32)) {
g_fb = fb;
g_unswizzle_func = unswizzle_func;