Mercurial > repos > blastem
changeset 190:4cb8a3891e26
Small fix to bg drawing that yields the proper res for direct color DMA
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 14 Jan 2013 02:13:14 -0800 |
parents | 806c3b7a6f2a |
children | 1b4d856b067a |
files | vdp.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/vdp.c Mon Jan 14 02:03:35 2013 -0800 +++ b/vdp.c Mon Jan 14 02:13:14 2013 -0800 @@ -929,16 +929,16 @@ if (context->latched_mode & BIT_H40) { linecyc /= 16; if (linecyc >= 50 && linecyc < 210) { - uint32_t x = ((linecyc-50)&(~0x1))*2; + uint32_t x = (linecyc-50)*2; start = context->framebuf + line * 320 + x; - end = start + 4; + end = start + 2; } } else { linecyc /= 20; if (linecyc >= 43 && linecyc < 171) { - uint32_t x = ((linecyc-48)&(~0x1))*2; + uint32_t x = (linecyc-43)*2; start = context->framebuf + line * 256 + x; - end = start + 4; + end = start + 2; } } uint16_t color = context->cram[context->regs[REG_BG_COLOR] & 0x3F];