Mercurial > repos > simple16
changeset 21:91ded3b12d96
Only run rendering hardware when display is enabled
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 29 Mar 2016 19:59:26 -0700 |
parents | a9364f5ee81a |
children | 407725d9a02f |
files | src/vdp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vdp.c Tue Mar 29 19:57:34 2016 -0700 +++ b/src/vdp.c Tue Mar 29 19:59:26 2016 -0700 @@ -28,7 +28,7 @@ } context->status &= ~(VDP_STATUS_VRAM|VDP_STATUS_SRAM); //Render to linebuffer - if (context->vcounter > 15 && context->vcounter < 240 && context->hcounter < 406) { + if ((context->status & VDP_STATUS_ENABLED) && context->vcounter > 15 && context->vcounter < 240 && context->hcounter < 406) { if (context->hcounter < 246) { context->status |= VDP_STATUS_VRAM; if (!context->hcounter) {