From d5d0b54054f5db7cad86fc08c1a12857b2ac04ca Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 26 Jun 2018 18:51:44 -0400 Subject: s/rgb_frame/fb/, add oam_cache, fix several instructions --- test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index 5900cf7..e2c66f0 100644 --- a/test.c +++ b/test.c @@ -61,7 +61,7 @@ load( } // buffer for rendered frames -static uint8_t frames[NUM_FRAMES * GB_FRAME_SIZE]; +static uint8_t frames[NUM_FRAMES * GB_FB_SIZE]; static void on_set_rom_bank( @@ -193,7 +193,7 @@ test_render_frames( gb_frame(&ctx); // copy frame to buffer - memcpy(frames + GB_FRAME_SIZE * j, gb_get_rgb_frame(&ctx), GB_FRAME_SIZE); + memcpy(frames + GB_FB_SIZE * j, gb_get_frame(&ctx), GB_FB_SIZE); } // save png -- cgit v1.2.3