From ef94225ba181d6bf6c164731ec101356ab4d5220 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 10 Sep 2013 09:55:12 -0700 Subject: Fix timing of backdrop rendering when the display is turned off --- vdp.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 04fd705..74c0857 100644 --- a/vdp.c +++ b/vdp.c @@ -1211,14 +1211,20 @@ void check_render_bg(vdp_context * context, int32_t line, uint32_t slot) line -= 1; int starti = -1; if (context->latched_mode & BIT_H40) { - if (slot >= 50 && slot < 210) { - uint32_t x = (slot-50)*2; + if (slot >= 55 && slot < 210) { + uint32_t x = (slot-55)*2; starti = line * 320 + x; + } else if (slot < 5) { + uint32_t x = (slot + 155)*2; + starti = (line-1)*320 + x; } } else { - if (slot >= 43 && slot < 171) { - uint32_t x = (slot-43)*2; + if (slot >= 48 && slot < 171) { + uint32_t x = (slot-48)*2; starti = line * 320 + x; + } else if (slot < 5) { + uint32_t x = (slot + 123)*2; + starti = (line-1)*320 + x; } } if (starti >= 0) { -- cgit v1.2.3