Skip to content

Commit 31f9b9a

Browse files
committed
fixed text80 rendering when background was transparent
1 parent 2d79903 commit 31f9b9a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ static void __time_critical_func(tmsScanline)(uint16_t y, VgaParams* params, uin
299299
pixels[x] = bg;
300300
}
301301

302-
/* convert from palette to bgr12 */
302+
/* convert from palette to bgr12 */
303303
int tmsX = 0;
304-
if (tmsScanlineBuffer[0] & 0xf0)
304+
if (tms9918->mode == TMS_MODE_TEXT80)
305305
{
306306
for (int x = hBorder; x < hBorder + TMS9918_PIXELS_X * 2; x += 2, ++tmsX)
307307
{

src/res/splash.png

5 Bytes
Loading

submodules/vrEmuTms9918

0 commit comments

Comments
 (0)