mirror of https://github.com/OpenRCT2/OpenRCT2.git
Handle hinted font rendering in scrolled texts, too.
This commit is contained in:
parent
346cfdf135
commit
f2e795b4ef
|
@ -1566,8 +1566,12 @@ void scrolling_text_set_bitmap_for_ttf(utf8 *text, sint32 scroll, uint8 *bitmap,
|
||||||
if (scrollPosition > -1) {
|
if (scrollPosition > -1) {
|
||||||
uint8 *dst = &bitmap[scrollPosition];
|
uint8 *dst = &bitmap[scrollPosition];
|
||||||
|
|
||||||
for (sint32 y = 0; y < height; y++) {
|
for (sint32 y = 0; y < height; y++)
|
||||||
if (src[y * pitch + x] != 0) *dst = colour;
|
{
|
||||||
|
if (src[y * pitch + x] > 92 || (src[y * pitch + x] != 0 && !gConfigFonts.enable_hinting))
|
||||||
|
{
|
||||||
|
*dst = colour;
|
||||||
|
}
|
||||||
|
|
||||||
// Jump to next row
|
// Jump to next row
|
||||||
dst += 64;
|
dst += 64;
|
||||||
|
|
Loading…
Reference in New Issue