Skip to content

Commit

Permalink
this was prolly bad
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Oct 4, 2022
1 parent 571d1c4 commit 1a60237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DSi_Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a60237

Please sign in to comment.