From 0f7449d9f3fa4d5d5bc6ca5b30851aba702f8293 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 4 Jan 2016 00:51:45 -0800 Subject: [PATCH] GBA Video: Remove unused bits --- src/gba/renderers/video-software.c | 2 -- src/gba/renderers/video-software.h | 1 - src/gba/video.h | 2 -- 3 files changed, 5 deletions(-) diff --git a/src/gba/renderers/video-software.c b/src/gba/renderers/video-software.c index cafd7d7f5..34031a307 100644 --- a/src/gba/renderers/video-software.c +++ b/src/gba/renderers/video-software.c @@ -729,8 +729,6 @@ static void GBAVideoSoftwareRendererWriteBLDCNT(struct GBAVideoSoftwareRenderer* renderer->target2Obj = GBARegisterBLDCNTGetTarget2Obj(value); renderer->target2Bd = GBARegisterBLDCNTGetTarget2Bd(value); - renderer->anyTarget2 = value & 0x3F00; - if (oldEffect != renderer->blendEffect) { _updatePalettes(renderer); } diff --git a/src/gba/renderers/video-software.h b/src/gba/renderers/video-software.h index b73ef98ea..ade51bc3e 100644 --- a/src/gba/renderers/video-software.h +++ b/src/gba/renderers/video-software.h @@ -131,7 +131,6 @@ struct GBAVideoSoftwareRenderer { enum BlendEffect blendEffect; color_t normalPalette[512]; color_t variantPalette[512]; - int anyTarget2; uint16_t blda; uint16_t bldb; diff --git a/src/gba/video.h b/src/gba/video.h index 0be6b177e..574b1e85c 100644 --- a/src/gba/video.h +++ b/src/gba/video.h @@ -38,8 +38,6 @@ enum { VIDEO_TOTAL_LENGTH = VIDEO_HORIZONTAL_LENGTH * VIDEO_VERTICAL_TOTAL_PIXELS, - REG_DISPSTAT_MASK = 0xFF38, - BASE_TILE = 0x00010000 };