[Core/VDP] fixed Game Gear display rendering regression when left/right borders are disabled

This commit is contained in:
EkeEke 2013-11-06 01:13:38 +01:00 committed by ToadKing
parent b63b9e738b
commit d507b8b633

View File

@ -4122,8 +4122,11 @@ void render_line(int line)
} }
/* Horizontal borders */ /* Horizontal borders */
memset(&linebuf[0][0x20 - bitmap.viewport.x], 0x40, bitmap.viewport.x); if (bitmap.viewport.x > 0)
memset(&linebuf[0][0x20 + bitmap.viewport.w], 0x40, bitmap.viewport.x); {
memset(&linebuf[0][0x20 - bitmap.viewport.x], 0x40, bitmap.viewport.x);
memset(&linebuf[0][0x20 + bitmap.viewport.w], 0x40, bitmap.viewport.x);
}
} }
else else
{ {