From e41ab4523090735b86abd50e405115a60e3db052 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 30 Mar 2017 11:40:39 -0400 Subject: [PATCH] matching font systems --- linux_4ed_fonts.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/linux_4ed_fonts.cpp b/linux_4ed_fonts.cpp index d0b8b129..01a617ab 100644 --- a/linux_4ed_fonts.cpp +++ b/linux_4ed_fonts.cpp @@ -115,12 +115,9 @@ Sys_Font_Init_Sig(system_font_init){ u32 dir_len = system_get_binary_path(&dir_str); Assert(dir_len < dir_max); - { - String dir_str = make_string_cap(directory, dir_len, dir_max); - set_last_folder_sc(&dir_str, "fonts", '/'); - terminate_with_null(&dir_str); - dir_len = dir_str.size; - } + set_last_folder_sc(&dir_str, "fonts", '/'); + terminate_with_null(&dir_str); + dir_len = dir_str.size; partition_reduce(scratch, dir_max - dir_len - 1); partition_align(scratch, 8);