summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-06-26 18:51:44 -0400
committerPaul Duncan <pabs@pablotron.org>2018-06-26 18:51:44 -0400
commitd5d0b54054f5db7cad86fc08c1a12857b2ac04ca (patch)
tree86de7598cf0251ed243479652d7c221367777474 /test.c
parente608f0d1449fe112ff1c0be2aec0ca5f8bab3232 (diff)
downloadgb-c-d5d0b54054f5db7cad86fc08c1a12857b2ac04ca.tar.bz2
gb-c-d5d0b54054f5db7cad86fc08c1a12857b2ac04ca.zip
s/rgb_frame/fb/, add oam_cache, fix several instructions
Diffstat (limited to 'test.c')
-rw-r--r--test.c4
1 files changed, 2 insertions, 2 deletions
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