sdf: switch font format from bmp to png
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 97 KiB |
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 101 KiB |
|
@ -422,7 +422,7 @@ int load_sprite(sprite_t * sprite, char * filename) {
|
||||||
|
|
||||||
char * ext = extension_from_filename(filename);
|
char * ext = extension_from_filename(filename);
|
||||||
|
|
||||||
if (!strcmp(ext,"png")) return load_sprite_png(sprite, filename);
|
if (!strcmp(ext,"png") || !strcmp(ext,"sdf")) return load_sprite_png(sprite, filename);
|
||||||
if (!strcmp(ext,"jpg") || !strcmp(ext,"jpeg")) return load_sprite_jpg(sprite, filename);
|
if (!strcmp(ext,"jpg") || !strcmp(ext,"jpeg")) return load_sprite_jpg(sprite, filename);
|
||||||
|
|
||||||
/* Fall back to bitmap */
|
/* Fall back to bitmap */
|
||||||
|
|