fp: Fix incorrect format for Dqn_usize causing wrapping on web

This commit is contained in:
doyle 2023-10-15 20:41:42 +11:00
parent 3e00aefff5
commit edfa461c9a
2 changed files with 2 additions and 2 deletions

View File

@ -3038,7 +3038,7 @@ void FP_Render(FP_Game *game, TELY_Platform *platform, TELY_Renderer *renderer,
TELY_Render_TextF(renderer, TELY_Render_TextF(renderer,
Dqn_V2_InitNx2(next_pos.x + money_icon_rect.size.x * .75f, money_icon_rect.pos.y), Dqn_V2_InitNx2(next_pos.x + money_icon_rect.size.x * .75f, money_icon_rect.pos.y),
Dqn_V2_InitNx2(0, -0.5), Dqn_V2_InitNx2(0, -0.5),
"$%I64u", "$%zu",
player->coins); player->coins);
// NOTE: Draw the icon shadow // NOTE: Draw the icon shadow

View File

@ -425,7 +425,7 @@ int main(int argc, char const **argv)
build_context.compile_flags = Dqn_Slice_InitCArrayCopy(scratch.arena, { build_context.compile_flags = Dqn_Slice_InitCArrayCopy(scratch.arena, {
DQN_STRING8("cmd"), DQN_STRING8("/C"), DQN_STRING8("emcc.bat"), DQN_STRING8("cmd"), DQN_STRING8("/C"), DQN_STRING8("emcc.bat"),
DQN_STRING8("-o"), DQN_STRING8("feely_pona.html"), DQN_STRING8("-o"), DQN_STRING8("feely_pona.html"),
DQN_STRING8("-Os"), // Optimize for size // DQN_STRING8("-Os"), // Optimize for size
DQN_STRING8("-Wall"), DQN_STRING8("-Wall"),
Dqn_FsPath_ConvertF(scratch.arena, "%.*s/%.*s", DQN_STRING_FMT(build_dir), DQN_STRING_FMT(raylib_emscripten_lib_name)), Dqn_FsPath_ConvertF(scratch.arena, "%.*s/%.*s", DQN_STRING_FMT(build_dir), DQN_STRING_FMT(raylib_emscripten_lib_name)),
DQN_STRING8("-s"), DQN_STRING8("USE_GLFW=3"), DQN_STRING8("-s"), DQN_STRING8("USE_GLFW=3"),