# HG changeset patch # User Matti Hamalainen # Date 1530308806 -10800 # Node ID b91d54a37b6b6d4bd2934db99734f8e2b0a3730a # Parent ebcb7713bb6a32617ac4d79faa6ae7c9b9e3ed3e Constify more. diff -r ebcb7713bb6a -r b91d54a37b6b src/dmtext_ttf.c --- 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;