Mercurial > hg > dmlib
comparison src/dmtext_bm.c @ 982:21aeff49d974
Oops. 100L fix to bitmapped text rendering.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Feb 2015 17:49:10 +0200 |
parents | 8aa0d640af74 |
children | e06abfde6c39 |
comparison
equal
deleted
inserted
replaced
981:25d653664874 | 982:21aeff49d974 |
---|---|
19 | 19 |
20 if (ch >= 0 && ch < font->nglyphs && (glyph = font->glyphs[ch]) != NULL) | 20 if (ch >= 0 && ch < font->nglyphs && (glyph = font->glyphs[ch]) != NULL) |
21 { | 21 { |
22 if (blit == NULL) | 22 if (blit == NULL) |
23 blit = dmGetUnscaledBlitFunc(glyph->format, screen->format, mode); | 23 blit = dmGetUnscaledBlitFunc(glyph->format, screen->format, mode); |
24 else | 24 |
25 if (blit != NULL) | |
25 { | 26 { |
26 blit(glyph, xc, yc, screen); | 27 blit(glyph, xc, yc, screen); |
27 xc += condensed ? glyph->w : font->width; | 28 xc += condensed ? glyph->w : font->width; |
28 } | 29 } |
29 } | 30 } |