Mercurial > hg > dmlib
diff src/dmtext_bm.c @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | 92b93a12c014 |
children |
line wrap: on
line diff
--- a/src/dmtext_bm.c Thu Dec 08 15:56:36 2022 +0200 +++ b/src/dmtext_bm.c Thu Dec 08 15:59:22 2022 +0200 @@ -8,7 +8,7 @@ void dmDrawBMTextConst(SDL_Surface *screen, const DMBitmapFont *font, - const BOOL condensed, const int mode, int xc, int yc, const char *fmt) + const bool condensed, const int mode, int xc, int yc, const char *fmt) { const char *ptr = fmt; DMUnscaledBlitFunc blit = dmGetUnscaledBlitFunc(font->glyphs->format, screen->format, mode); @@ -42,7 +42,7 @@ void dmDrawBMTextVA(SDL_Surface *screen, const DMBitmapFont *font, - const BOOL condensed, const int mode, const int xc, const int yc, + const bool condensed, const int mode, const int xc, const int yc, const char *fmt, va_list ap) { char tmp[512]; @@ -53,7 +53,7 @@ void dmDrawBMText(SDL_Surface *screen, const DMBitmapFont *font, - const BOOL condensed, const int mode, const int xc, const int yc, + const bool condensed, const int mode, const int xc, const int yc, const char *fmt, ...) { va_list ap; @@ -143,7 +143,7 @@ char magic[8]; Uint16 version, nglyphs, maxglyph; Uint8 width, height, bpp; - BOOL tsfont = FALSE; + bool tsfont = false; // Check magic and version if (!dmf_read_str(fp, (Uint8 *) &magic, 6) || @@ -155,7 +155,7 @@ { // Yep, we handle these a bit differently int encoding = dmfgetc(fp); - tsfont = TRUE; + tsfont = true; #ifdef FN_DEBUG fprintf(stderr, "TSFONT v%d.%d (0x%04x), encoding=%d\n",