Files
balatro-gba/source/font.c
MeirGavish 7a5a4a1276
Some checks failed
Build and Deploy Doxygen Docs / docs (push) Has been cancelled
Updated all static variables to have the s_ prefix and constants to upper case (#591)
* Updated all static variables to have the s_ prefix and constants to upper case

* Renamed missed sneaky functions in round.c (+ clang-format...)

* Renamed a few more missed constants

* Updated rng_update() documentation

* Apply suggestions from Copilot's code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Added missed suggestion

* Updated rng_update() comment

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-16 20:21:18 +03:00

30 lines
444 B
C

#include "font.h"
#include "util.h"
#include <stdlib.h>
static const char* FONT_POINT_LOOKUP[] = {
FP0_STR,
FP1_STR,
FP2_STR,
FP3_STR,
FP4_STR,
FP5_STR,
FP6_STR,
FP7_STR,
FP8_STR,
FP9_STR,
};
const char* get_font_point_str(int val)
{
val = abs(val) % 10;
return FONT_POINT_LOOKUP[val];
}
char digit_char_to_font_point(char digit_char)
{
return get_font_point_str(digit_char - '0')[0];
}