summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2020-04-16 22:37:43 -0700
committerMike Pavone <pavone@retrodev.com>2020-04-16 22:37:43 -0700
commit16485197368e89bce59b908bec10fdb3fb1d0d0c (patch)
treeac5f206e88c865c0c01cad23c9615bbea4ed5c73 /vdp.c
parent4d6a594f8ad4a209a587278a245edb3db0566c39 (diff)
Admit defeat on the "trying to write CRAM dots while output is null issue" for now and just add a null check
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index d3798f1..9950621 100644
--- a/vdp.c
+++ b/vdp.c
@@ -814,7 +814,7 @@ static void write_cram(vdp_context * context, uint16_t address, uint16_t value)
}
write_cram_internal(context, addr, value);
- if (context->hslot >= BG_START_SLOT && (
+ if (context->output && context->hslot >= BG_START_SLOT && (
context->vcounter < context->inactive_start + context->border_bot
|| context->vcounter > 0x200 - context->border_top
)) {