all repos — mgba @ 41b1eecb8ccf1afcdb2fccfc34a7796d08a74a5c

mGBA Game Boy Advance Emulator

All: Use GBAContext.rendering properly
Jeffrey Pfau jeffrey@endrift.com
Sat, 29 Aug 2015 04:19:32 -0700
commit

41b1eecb8ccf1afcdb2fccfc34a7796d08a74a5c

parent

2ca68fa9c613f2a35506a68822e40052dffa6e93

M src/platform/3ds/main.csrc/platform/3ds/main.c

@@ -94,7 +94,7 @@ struct GBAVideoSoftwareRenderer renderer;

GBAVideoSoftwareRendererCreate(&renderer); renderer.outputBuffer = anonymousMemoryMap(256 * VIDEO_VERTICAL_PIXELS * 2); renderer.outputBufferStride = 256; - GBAVideoAssociateRenderer(&context.gba->video, &renderer.d); + context.renderer = &renderer.d; if (!font) { goto cleanup;
M src/platform/libretro/libretro.csrc/platform/libretro/libretro.c

@@ -182,7 +182,7 @@

GBAVideoSoftwareRendererCreate(&renderer); renderer.outputBuffer = malloc(256 * VIDEO_VERTICAL_PIXELS * BYTES_PER_PIXEL); renderer.outputBufferStride = 256; - GBAVideoAssociateRenderer(&context.gba->video, &renderer.d); + context->renderer = &renderer.d; GBAAudioResizeBuffer(&context.gba->audio, SAMPLES);
M src/platform/psp2/psp2-context.csrc/platform/psp2/psp2-context.c

@@ -103,7 +103,7 @@

GBAVideoSoftwareRendererCreate(&renderer); renderer.outputBuffer = vita2d_texture_get_datap(tex); renderer.outputBufferStride = 256; - GBAVideoAssociateRenderer(&context.gba->video, &renderer.d); + context.renderer = &renderer.d; printf("%s starting", projectName); }
M src/platform/test/fuzz-main.csrc/platform/test/fuzz-main.c

@@ -84,7 +84,7 @@ if (!fuzzOpts.noVideo) {

GBAVideoSoftwareRendererCreate(&renderer); renderer.outputBuffer = malloc(256 * 256 * 4); renderer.outputBufferStride = 256; - GBAVideoAssociateRenderer(&context.gba->video, &renderer.d); + context->renderer = &renderer.d; } GBAContextStart(&context);
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -156,7 +156,7 @@

GBAVideoSoftwareRendererCreate(&renderer); renderer.outputBuffer = memalign(32, 256 * 256 * BYTES_PER_PIXEL); renderer.outputBufferStride = 256; - GBAVideoAssociateRenderer(&context.gba->video, &renderer.d); + context.renderer = renderer.d; GBAAudioResizeBuffer(&context.gba->audio, SAMPLES);