comparison dmtext_bm.c @ 66:f18ad054a695

Oops, some function arguments were reversed.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 01 Oct 2012 11:52:42 +0300
parents 03375aa0ef2b
children a791146e3094
comparison
equal deleted inserted replaced
65:03375aa0ef2b 66:f18ad054a695
8 8
9 9
10 void dmDrawBMTextConst(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt) 10 void dmDrawBMTextConst(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt)
11 { 11 {
12 const char *ptr = fmt; 12 const char *ptr = fmt;
13 DMScaledBlitFunc blit = dmGetScaledBlitFunc(screen->format, font->glyphs[0]->format, mode); 13 DMScaledBlitFunc blit = dmGetScaledBlitFunc(font->glyphs[0]->format, screen->format, mode);
14 while (*ptr) 14 while (*ptr)
15 { 15 {
16 char ch = *ptr++; 16 char ch = *ptr++;
17 17
18 if (isprint(ch) && ch != ' ' && ch != '\t') 18 if (isprint(ch) && ch != ' ' && ch != '\t')