Even more font changes... /:
This commit is contained in:
parent
0f3501011e
commit
3d824efb4e
Binary file not shown.
@ -39,14 +39,17 @@ static void no_logging (int msgType, const char * text, va_list args) {
|
|||||||
static void render_clean_up (void) {
|
static void render_clean_up (void) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < texture_count; ++i)
|
for (i = 0; i < texture_count; ++i) {
|
||||||
UnloadTexture (texture_array [i]);
|
UnloadTexture (texture_array [i]);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < sound_count; ++i)
|
for (i = 0; i < sound_count; ++i) {
|
||||||
UnloadSound (sound_array [i]);
|
UnloadSound (sound_array [i]);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < font_count; ++i)
|
for (i = 1; i < font_count; ++i) {
|
||||||
UnloadFont (font_array [i]);
|
UnloadFont (font_array [i]);
|
||||||
|
}
|
||||||
|
|
||||||
free (texture_array);
|
free (texture_array);
|
||||||
free (sound_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;
|
Vector2 position;
|
||||||
|
|
||||||
position.x = ((font == 0) ? 4 : pad) + x;
|
position.x = ((font == 0) ? 6 : pad) + x;
|
||||||
position.y = ((font == 0) ? 4 : pad) + y;
|
position.y = ((font == 0) ? 6 : pad) + y;
|
||||||
|
|
||||||
new_tint.r = ((colour & 0XFF0000) >> 16) % 256;
|
new_tint.r = ((colour & 0XFF0000) >> 16) % 256;
|
||||||
new_tint.g = ((colour & 0X00FF00) >> 8) % 256;
|
new_tint.g = ((colour & 0X00FF00) >> 8) % 256;
|
||||||
|
Loading…
Reference in New Issue
Block a user