Mercurial > repos > blastem
comparison vdp.c @ 462:5677c053edd6
Fix timing of backdrop rendering when the display is turned off
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 10 Sep 2013 09:55:12 -0700 |
parents | 6221f8f534fa |
children | 140af5509ce7 |
comparison
equal
deleted
inserted
replaced
461:6221f8f534fa | 462:5677c053edd6 |
---|---|
1209 { | 1209 { |
1210 if (line > 0) { | 1210 if (line > 0) { |
1211 line -= 1; | 1211 line -= 1; |
1212 int starti = -1; | 1212 int starti = -1; |
1213 if (context->latched_mode & BIT_H40) { | 1213 if (context->latched_mode & BIT_H40) { |
1214 if (slot >= 50 && slot < 210) { | 1214 if (slot >= 55 && slot < 210) { |
1215 uint32_t x = (slot-50)*2; | 1215 uint32_t x = (slot-55)*2; |
1216 starti = line * 320 + x; | 1216 starti = line * 320 + x; |
1217 } | 1217 } else if (slot < 5) { |
1218 } else { | 1218 uint32_t x = (slot + 155)*2; |
1219 if (slot >= 43 && slot < 171) { | 1219 starti = (line-1)*320 + x; |
1220 uint32_t x = (slot-43)*2; | 1220 } |
1221 } else { | |
1222 if (slot >= 48 && slot < 171) { | |
1223 uint32_t x = (slot-48)*2; | |
1221 starti = line * 320 + x; | 1224 starti = line * 320 + x; |
1225 } else if (slot < 5) { | |
1226 uint32_t x = (slot + 123)*2; | |
1227 starti = (line-1)*320 + x; | |
1222 } | 1228 } |
1223 } | 1229 } |
1224 if (starti >= 0) { | 1230 if (starti >= 0) { |
1225 if (context->b32) { | 1231 if (context->b32) { |
1226 uint32_t color = context->colors[context->regs[REG_BG_COLOR] & 0x3F]; | 1232 uint32_t color = context->colors[context->regs[REG_BG_COLOR] & 0x3F]; |