Fix font selection bug

pull/154/head
IanSB 2020-08-11 03:50:43 +01:00
rodzic a908c2db74
commit 53a55a3b34
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -4610,7 +4610,7 @@ void osd_update_fast(uint32_t *osd_base, int bytes_per_line) {
break;
}
if (((capinfo->sizex2 & 1) && capinfo->nlines > FONT_THRESHOLD * 10) && (bufferCharWidth > LINELEN) && allow1220font) { // if frame buffer is large enough and not 8bpp use SAA5050 font
if (((capinfo->sizex2 & 1) && capinfo->nlines > FONT_THRESHOLD * 10) && (bufferCharWidth >= LINELEN) && allow1220font) { // if frame buffer is large enough and not 8bpp use SAA5050 font
for (int line = 0; line <= osd_hwm; line++) {
int attr = attributes[line];
int len = (attr & ATTR_DOUBLE_SIZE) ? (LINELEN >> 1) : LINELEN;