New font experiments...
This commit is contained in:
parent
1b5ff7cc8b
commit
da1cfbb1bb
BIN
font/alagard.png
BIN
font/alagard.png
Binary file not shown.
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 59 KiB |
@ -119,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) ? 6 : pad) + x;
|
position.x = ((font == 0) ? 4 : (32 - size) / 2) + x;
|
||||||
position.y = ((font == 0) ? 6 : pad) + y;
|
position.y = ((font == 0) ? 4 : (32 - size) / 2) + 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