From f72e55c3f6dc965266c4a4da2233f83ca1092af8 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 20 Feb 2022 03:50:44 -0800 Subject: [PATCH] GB I/O: Remove pointless GBVideoProcessDots calls --- src/gb/io.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gb/io.c b/src/gb/io.c index 61a1b7c93..deed1153f 100644 --- a/src/gb/io.c +++ b/src/gb/io.c @@ -506,9 +506,6 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) { gb->memory.io[GB_REG_BCPD] = gb->video.palette[gb->video.bcpIndex >> 1] >> (8 * (gb->video.bcpIndex & 1)); break; case GB_REG_BCPD: - if (gb->video.mode != 3) { - GBVideoProcessDots(&gb->video, 0); - } GBVideoWritePalette(&gb->video, address, value); return; case GB_REG_OCPS: @@ -517,9 +514,6 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) { gb->memory.io[GB_REG_OCPD] = gb->video.palette[8 * 4 + (gb->video.ocpIndex >> 1)] >> (8 * (gb->video.ocpIndex & 1)); break; case GB_REG_OCPD: - if (gb->video.mode != 3) { - GBVideoProcessDots(&gb->video, 0); - } GBVideoWritePalette(&gb->video, address, value); return; case GB_REG_SVBK: