From 09d629aa857afd3016f9113aa4cdd1744cb38e89 Mon Sep 17 00:00:00 2001 From: fincs Date: Sat, 13 Jun 2020 21:57:09 +0200 Subject: [PATCH] gspPresentBuffer: stride is u32 --- libctru/include/3ds/services/gspgpu.h | 2 +- libctru/source/services/gspgpu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libctru/include/3ds/services/gspgpu.h b/libctru/include/3ds/services/gspgpu.h index b03de3a..79d0531 100644 --- a/libctru/include/3ds/services/gspgpu.h +++ b/libctru/include/3ds/services/gspgpu.h @@ -99,7 +99,7 @@ void gspExit(void); * @param mode Mode configuration to be written to LCD register * @note The most recently presented buffer is processed and configured during the specified screen's next VBlank event. */ -void gspPresentBuffer(unsigned screen, unsigned swap, const void* fb_a, const void* fb_b, unsigned stride, u32 mode); +void gspPresentBuffer(unsigned screen, unsigned swap, const void* fb_a, const void* fb_b, u32 stride, u32 mode); /** * @brief Configures a callback to run when a GSPGPU event occurs. diff --git a/libctru/source/services/gspgpu.c b/libctru/source/services/gspgpu.c index 30dd1c4..fc50958 100644 --- a/libctru/source/services/gspgpu.c +++ b/libctru/source/services/gspgpu.c @@ -219,7 +219,7 @@ void gspExit(void) svcCloseHandle(gspGpuHandle); } -void gspPresentBuffer(unsigned screen, unsigned swap, const void* fb_a, const void* fb_b, unsigned stride, u32 mode) +void gspPresentBuffer(unsigned screen, unsigned swap, const void* fb_a, const void* fb_b, u32 stride, u32 mode) { GSPGPU_FramebufferInfo info; info.active_framebuf = swap;