# HG changeset patch # User Michael Pavone # Date 1459306766 25200 # Node ID 91ded3b12d96e3363b39d371ab2ea1acffa02276 # Parent a9364f5ee81a25d971dd415c1d837a208ca41a3b Only run rendering hardware when display is enabled diff -r a9364f5ee81a -r 91ded3b12d96 src/vdp.c --- 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) {