Even more font changes... /:

This commit is contained in:
Ognjen Milan Robovic 2024-03-14 07:13:17 -04:00
parent 0f3501011e
commit 3d824efb4e
2 changed files with 8 additions and 5 deletions

Binary file not shown.

View File

@ -39,14 +39,17 @@ static void no_logging (int msgType, const char * text, va_list args) {
static void render_clean_up (void) {
int i;
for (i = 0; i < texture_count; ++i)
for (i = 0; i < texture_count; ++i) {
UnloadTexture (texture_array [i]);
}
for (i = 0; i < sound_count; ++i)
for (i = 0; i < sound_count; ++i) {
UnloadSound (sound_array [i]);
}
for (i = 0; i < font_count; ++i)
for (i = 1; i < font_count; ++i) {
UnloadFont (font_array [i]);
}
free (texture_array);
free (sound_array);
@ -116,8 +119,8 @@ void render_string (char * string, int x, int y, int colour, int font, int size,
Vector2 position;
position.x = ((font == 0) ? 4 : pad) + x;
position.y = ((font == 0) ? 4 : pad) + y;
position.x = ((font == 0) ? 6 : pad) + x;
position.y = ((font == 0) ? 6 : pad) + y;
new_tint.r = ((colour & 0XFF0000) >> 16) % 256;
new_tint.g = ((colour & 0X00FF00) >> 8) % 256;