all repos — mgba @ 14ee1589f0783be6b6d99597e682d84a7869c351

mGBA Game Boy Advance Emulator

3DS: Tweak alignment, probably does nothing
Jeffrey Pfau jeffrey@endrift.com
Sat, 05 Sep 2015 02:54:21 -0700
commit

14ee1589f0783be6b6d99597e682d84a7869c351

parent

20559ac2ea54f80cb5c6d3192129b2cfbcbb6381

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

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

@@ -81,7 +81,7 @@ runner->context.gba->stream = &stream;

} 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 _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 @@ return 1;

} 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();