Mercurial > hg > dmlib
changeset 1952:b91d54a37b6b
Constify more.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 30 Jun 2018 00:46:46 +0300 |
parents | ebcb7713bb6a |
children | c3e88d9343ca |
files | src/dmtext_ttf.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmtext_ttf.c Sat Jun 30 00:45:57 2018 +0300 +++ b/src/dmtext_ttf.c Sat Jun 30 00:46:46 2018 +0300 @@ -7,7 +7,8 @@ #include "dmtext.h" -void dmDrawTTFTextConst(SDL_Surface *screen, TTF_Font *font, SDL_Color col, int xc, int yc, const char *fmt) +void dmDrawTTFTextConst(SDL_Surface *screen, TTF_Font *font, + SDL_Color col, const int xc, const int yc, const char *fmt) { SDL_Surface *text = TTF_RenderText_Blended(font, fmt, col); if (text != NULL) @@ -22,7 +23,9 @@ } } -void dmDrawTTFTextVA(SDL_Surface *screen, TTF_Font *font, SDL_Color col, int xc, int yc, const char *fmt, va_list ap) + +void dmDrawTTFTextVA(SDL_Surface *screen, TTF_Font *font, + SDL_Color col, const int xc, const int yc, const char *fmt, va_list ap) { char *tmp = dm_strdup_vprintf(fmt, ap); if (tmp != NULL) @@ -32,7 +35,9 @@ } } -void dmDrawTTFText(SDL_Surface *screen, TTF_Font *font, SDL_Color col, int xc, int yc, const char *fmt, ...) + +void dmDrawTTFText(SDL_Surface *screen, TTF_Font *font, + SDL_Color col, const int xc, const int yc, const char *fmt, ...) { va_list ap;