diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-09-10 09:55:12 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-09-10 09:55:12 -0700 |
commit | ef94225ba181d6bf6c164731ec101356ab4d5220 (patch) | |
tree | 7d14df816126e79e5cfb8d9fc4a7d82d01df5394 /vdp.c | |
parent | ec1959edf864cf98de267cb0f17b8b2f044a8762 (diff) |
Fix timing of backdrop rendering when the display is turned off
Diffstat (limited to 'vdp.c')
-rw-r--r-- | vdp.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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) { |