Mercurial > hg > dmlib
diff ppl.c @ 137:f721f9f7838a
Remove toupper() from custom text drawing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 05 Oct 2012 05:26:54 +0300 |
parents | 1d7dc7c8745c |
children | ead759da30b4 |
line wrap: on
line diff
--- a/ppl.c Fri Oct 05 04:11:24 2012 +0300 +++ b/ppl.c Fri Oct 05 05:26:54 2012 +0300 @@ -165,7 +165,7 @@ while (*ptr) { - int ch = toupper(*ptr++); + int ch = *ptr++; SDL_Surface *glyph; if (ch == '_') @@ -608,7 +608,8 @@ dmError("Can't lock surface.\n"); goto error_exit; } - + +#if 1 dmDrawBox3D(engine.screen, 0, 0, engine.screen->w - 1, engine.screen->h - 1, col.boxBg, col.box1, col.box2); @@ -627,13 +628,14 @@ plr->pattern, plr->row, 0); JSS_UNLOCK(plr); JSS_UNLOCK(dev); +#endif // Flip screen if (SDL_MUSTLOCK(engine.screen) != 0) SDL_UnlockSurface(engine.screen); SDL_Flip(engine.screen); - SDL_Delay(10); + SDL_Delay(16); } error_exit: