all repos — mgba @ d7fcbb8c26fdb59fcbd8233d0689e3e52da73f25

mGBA Game Boy Advance Emulator

Fix the GBVideoDummyRendererDrawRange signature
Bastien Orivel eijebong@bananium.fr
Wed, 28 Oct 2020 19:54:38 +0100
commit

d7fcbb8c26fdb59fcbd8233d0689e3e52da73f25

parent

199f692d553187b92e2015f6e4eb29d21f11c1bc

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M src/gb/video.csrc/gb/video.c

@@ -25,7 +25,7 @@ static void GBVideoDummyRendererWriteSGBPacket(struct GBVideoRenderer* renderer, uint8_t* data);

static void GBVideoDummyRendererWritePalette(struct GBVideoRenderer* renderer, int index, uint16_t value); static void GBVideoDummyRendererWriteVRAM(struct GBVideoRenderer* renderer, uint16_t address); static void GBVideoDummyRendererWriteOAM(struct GBVideoRenderer* renderer, uint16_t oam); -static void GBVideoDummyRendererDrawRange(struct GBVideoRenderer* renderer, int startX, int endX, int y, struct GBObj* obj, size_t oamMax); +static void GBVideoDummyRendererDrawRange(struct GBVideoRenderer* renderer, int startX, int endX, int y); static void GBVideoDummyRendererFinishScanline(struct GBVideoRenderer* renderer, int y); static void GBVideoDummyRendererFinishFrame(struct GBVideoRenderer* renderer); static void GBVideoDummyRendererEnableSGBBorder(struct GBVideoRenderer* renderer, bool enable);

@@ -794,13 +794,11 @@ mCacheSetWritePalette(renderer->cache, index, mColorFrom555(value));

} } -static void GBVideoDummyRendererDrawRange(struct GBVideoRenderer* renderer, int startX, int endX, int y, struct GBObj* obj, size_t oamMax) { +static void GBVideoDummyRendererDrawRange(struct GBVideoRenderer* renderer, int startX, int endX, int y) { UNUSED(renderer); UNUSED(endX); UNUSED(startX); UNUSED(y); - UNUSED(obj); - UNUSED(oamMax); // Nothing to do }