makefile
This commit is contained in:
parent
1dd1b6c191
commit
4d19411acd
@ -109,7 +109,7 @@ void print_string(float x, float y, char *text, float r, float g, float b)
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
struct {
|
||||
struct stb_easy_font_info_struct {
|
||||
unsigned char advance;
|
||||
unsigned char h_seg;
|
||||
unsigned char v_seg;
|
||||
|
@ -95,14 +95,14 @@ void stb_leakcheck_dumpmem(void)
|
||||
stb_leakcheck_malloc_info *mi = mi_head;
|
||||
while (mi) {
|
||||
if ((ptrdiff_t) mi->size >= 0)
|
||||
printf("LEAKED: %s (%4d): %8z bytes at %p\n", mi->file, mi->line, mi->size, mi+1);
|
||||
printf("LEAKED: %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) mi->size, mi+1);
|
||||
mi = mi->next;
|
||||
}
|
||||
#ifdef STB_LEAKCHECK_SHOWALL
|
||||
mi = mi_head;
|
||||
while (mi) {
|
||||
if ((ptrdiff_t) mi->size < 0)
|
||||
printf("FREED : %s (%4d): %8z bytes at %p\n", mi->file, mi->line, ~mi->size, mi+1);
|
||||
printf("FREED : %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) ~mi->size, mi+1);
|
||||
mi = mi->next;
|
||||
}
|
||||
#endif
|
||||
|
@ -3356,7 +3356,7 @@ static void stbte__toolbar(stbte_tilemap *tm, int x0, int y0, int w, int h)
|
||||
|
||||
#define STBTE__TEXTCOLOR(n) stbte__color_table[n][STBTE__text][STBTE__idle]
|
||||
|
||||
static int stbte__info_value(char *label, int x, int y, int val, int digits, int id)
|
||||
static int stbte__info_value(const char *label, int x, int y, int val, int digits, int id)
|
||||
{
|
||||
if (stbte__ui.event == STBTE__paint) {
|
||||
int off = 9-stbte__get_char_width(label[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user