Handle hinted font rendering in scrolled texts, too.

This commit is contained in:
Aaron van Geffen 2017-09-24 02:56:16 +02:00 committed by Marijn van der Werf
parent 346cfdf135
commit f2e795b4ef
1 changed files with 6 additions and 2 deletions

View File

@ -1566,8 +1566,12 @@ void scrolling_text_set_bitmap_for_ttf(utf8 *text, sint32 scroll, uint8 *bitmap,
if (scrollPosition > -1) {
uint8 *dst = &bitmap[scrollPosition];
for (sint32 y = 0; y < height; y++) {
if (src[y * pitch + x] != 0) *dst = colour;
for (sint32 y = 0; y < height; y++)
{
if (src[y * pitch + x] > 92 || (src[y * pitch + x] != 0 && !gConfigFonts.enable_hinting))
{
*dst = colour;
}
// Jump to next row
dst += 64;