From 1a602376c7e24b6d68ff23507c7c81236d89e549 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Tue, 4 Oct 2022 19:37:49 +0200 Subject: this was prolly bad --- src/DSi_Camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/DSi_Camera.cpp b/src/DSi_Camera.cpp index dcf41a9..20f15cf 100644 --- a/src/DSi_Camera.cpp +++ b/src/DSi_Camera.cpp @@ -536,7 +536,7 @@ int Camera::TransferScanline(u32* buffer, int maxlen) { if (dx >= maxlen) break; - int sx = 638 - ((dx * 640) / FrameWidth); + int sx = 319 - ((dx * 640) / FrameWidth); u32 val = FrameBuffer[sy*320 + sx]; buffer[dx] = (val & 0xFF00FF00) | ((val >> 16) & 0xFF) | ((val & 0xFF) << 16); -- cgit v1.2.3