changeset 101:8bba97252d85

Oops, 10L.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Oct 2012 20:33:32 +0300
parents f16d102dbbac
children 751af3f0e3f2
files dmtext_bm.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dmtext_bm.c	Tue Oct 02 20:33:01 2012 +0300
+++ b/dmtext_bm.c	Tue Oct 02 20:33:32 2012 +0300
@@ -129,8 +129,7 @@
         SDL_Surface *glyph = font->glyphs[i];
         if (glyph != NULL)
         {
-            if (glyph->format->BitsPerPixel == 8)
-                SDL_SetColors(glyph, pal, start, end);
+            SDL_SetColors(glyph, pal, start, size);
         }
     }