From 14ee1589f0783be6b6d99597e682d84a7869c351 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 5 Sep 2015 02:54:21 -0700 Subject: [PATCH] 3DS: Tweak alignment, probably does nothing --- src/platform/3ds/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/3ds/main.c b/src/platform/3ds/main.c index b35005b33..58f604c98 100644 --- a/src/platform/3ds/main.c +++ b/src/platform/3ds/main.c @@ -81,7 +81,7 @@ static void _setup(struct GBAGUIRunner* runner) { } GBAVideoSoftwareRendererCreate(&renderer); - renderer.outputBuffer = linearMemAlign(256 * 256 * 2, 0x100); + renderer.outputBuffer = linearMemAlign(256 * VIDEO_VERTICAL_PIXELS * 2, 0x80); renderer.outputBufferStride = 256; runner->context.renderer = &renderer.d; @@ -163,7 +163,7 @@ static void _drawFrame(struct GBAGUIRunner* runner, bool faded) { static void _drawScreenshot(struct GBAGUIRunner* runner, const uint32_t* pixels, bool faded) { UNUSED(runner); - u16* newPixels = linearMemAlign(256 * VIDEO_VERTICAL_PIXELS * 2, 0x100); + u16* newPixels = linearMemAlign(256 * VIDEO_VERTICAL_PIXELS * 2, 0x80); unsigned y, x; for (y = 0; y < VIDEO_VERTICAL_PIXELS; ++y) { for (x = 0; x < VIDEO_HORIZONTAL_PIXELS; ++x) { @@ -308,8 +308,8 @@ int main() { } if (hasSound) { - audioLeft = linearAlloc(AUDIO_SAMPLE_BUFFER * sizeof(int16_t)); - audioRight = linearAlloc(AUDIO_SAMPLE_BUFFER * sizeof(int16_t)); + audioLeft = linearMemAlign(AUDIO_SAMPLE_BUFFER * sizeof(int16_t), 0x80); + audioRight = linearMemAlign(AUDIO_SAMPLE_BUFFER * sizeof(int16_t), 0x80); } sf2d_init();