mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-02 06:53:39 +00:00
Get rid of warnings and declare STBTT_STATIC
This commit is contained in:
parent
7d9530c83a
commit
09c67e3cf9
@ -21,8 +21,11 @@
|
||||
|
||||
#define STB_TRUETYPE_IMPLEMENTATION
|
||||
#define STB_RECT_PACK_IMPLEMENTATION
|
||||
#define STBTT_STATIC
|
||||
#define static static INLINE
|
||||
#include "../../deps/stb/stb_rect_pack.h"
|
||||
#include "../../deps/stb/stb_truetype.h"
|
||||
#undef static
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -56,7 +59,7 @@ static bool font_renderer_stb_create_atlas(stb_font_renderer_t *self,
|
||||
uint8_t *font_data, float font_size)
|
||||
{
|
||||
int i;
|
||||
stbtt_pack_context pc;
|
||||
stbtt_pack_context pc = {NULL};
|
||||
stbtt_packedchar chardata[256];
|
||||
|
||||
self->atlas.width = self->atlas.height = 512;
|
||||
|
Loading…
x
Reference in New Issue
Block a user