mirror of
https://github.com/cellos51/balatro-gba.git
synced 2026-09-08 17:06:33 -05:00
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 * 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>
30 lines
444 B
C
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];
|
|
}
|