all repos — mgba @ 8e49360ffd340f84e16d2254ab56ffb4f992ce35

mGBA Game Boy Advance Emulator

Add missing dummy video functions
Jeffrey Pfau jeffrey@endrift.com
Thu, 24 Jul 2014 03:20:12 -0700
commit

8e49360ffd340f84e16d2254ab56ffb4f992ce35

parent

e2c3c4068db626f05ea4f013e62a72672ac66427

1 files changed, 17 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-video.csrc/gba/gba-video.c

@@ -12,6 +12,8 @@ static void GBAVideoDummyRendererInit(struct GBAVideoRenderer* renderer);

static void GBAVideoDummyRendererReset(struct GBAVideoRenderer* renderer); static void GBAVideoDummyRendererDeinit(struct GBAVideoRenderer* renderer); static uint16_t GBAVideoDummyRendererWriteVideoRegister(struct GBAVideoRenderer* renderer, uint32_t address, uint16_t value); +static void GBAVideoDummyRendererWritePalette(struct GBAVideoRenderer* renderer, uint32_t address, uint16_t value); +static void GBAVideoDummyRendererWriteOAM(struct GBAVideoRenderer* renderer, uint32_t oam); static void GBAVideoDummyRendererDrawScanline(struct GBAVideoRenderer* renderer, int y); static void GBAVideoDummyRendererFinishFrame(struct GBAVideoRenderer* renderer);

@@ -20,6 +22,8 @@ .init = GBAVideoDummyRendererInit,

.reset = GBAVideoDummyRendererReset, .deinit = GBAVideoDummyRendererDeinit, .writeVideoRegister = GBAVideoDummyRendererWriteVideoRegister, + .writePalette = GBAVideoDummyRendererWritePalette, + .writeOAM = GBAVideoDummyRendererWriteOAM, .drawScanline = GBAVideoDummyRendererDrawScanline, .finishFrame = GBAVideoDummyRendererFinishFrame };

@@ -189,6 +193,19 @@ static uint16_t GBAVideoDummyRendererWriteVideoRegister(struct GBAVideoRenderer* renderer, uint32_t address, uint16_t value) {

UNUSED(renderer); UNUSED(address); return value; +} + +static void GBAVideoDummyRendererWritePalette(struct GBAVideoRenderer* renderer, uint32_t address, uint16_t value) { + UNUSED(renderer); + UNUSED(address); + UNUSED(value); + // Nothing to do +} + +static void GBAVideoDummyRendererWriteOAM(struct GBAVideoRenderer* renderer, uint32_t oam) { + UNUSED(renderer); + UNUSED(oam); + // Nothing to do } static void GBAVideoDummyRendererDrawScanline(struct GBAVideoRenderer* renderer, int y) {