Mercurial > hg > dmlib
comparison src/dmtext_bm.c @ 1966:934cc71c97eb
Use dmSetBitmapFontPalette().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 30 Jun 2018 06:20:47 +0300 |
parents | ef08af6887b7 |
children | 92b93a12c014 |
comparison
equal
deleted
inserted
replaced
1965:686c3f30aa10 | 1966:934cc71c97eb |
---|---|
250 for (int n = 0; n < DMFONT_NPALETTE; n++) | 250 for (int n = 0; n < DMFONT_NPALETTE; n++) |
251 { | 251 { |
252 pal[n].r = pal[n].g = pal[n].b = n > 0 ? 255 : 0; | 252 pal[n].r = pal[n].g = pal[n].b = n > 0 ? 255 : 0; |
253 pal[n].a = n > 0 ? 255 : 0; | 253 pal[n].a = n > 0 ? 255 : 0; |
254 } | 254 } |
255 SDL_SetPaletteColors(font->glyphs->format->palette, pal, 0, DMFONT_NPALETTE); | 255 dmSetBitmapFontPalette(font, pal, 0, DMFONT_NPALETTE); |
256 } | 256 } |
257 | 257 |
258 // Read glyph data, if any | 258 // Read glyph data, if any |
259 for (int i = 0; i < nglyphs; i++) | 259 for (int i = 0; i < nglyphs; i++) |
260 { | 260 { |