Handle hinted font rendering in scrolled texts, too.

This commit is contained in:
Aaron van Geffen authored and Marijn van der Werf committed 2017-10-15 22:31:11 +02:00
1 parent 346cfdf135
commit f2e795b4ef
1 file changed
+6 -2
+6 -2
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;