Compare commits

..

2 Commits

Author SHA1 Message Date
Serena Postelnek
ebf37252fc
Merge 77370558eb into cfd4979a89 2025-08-11 09:06:03 +02:00
Dave Murphy
cfd4979a89 adjust for 1-based windows - https://github.com/switchbrew/libnx/pull/682 2025-07-26 15:32:28 +02:00

View File

@ -443,8 +443,8 @@ static void GpuRenderer_scrollWindow(PrintConsole* con)
// Perform the scrolling
for (int y = 0; y < con->windowHeight-1; y ++) {
memcpy(
&r->charBuf[(con->windowY+y+0)*con->consoleWidth + con->windowX],
&r->charBuf[(con->windowY+y+1)*con->consoleWidth + con->windowX],
&r->charBuf[(con->windowY-1+y+0)*con->consoleWidth + con->windowX - 1],
&r->charBuf[(con->windowY-1+y+1)*con->consoleWidth + con->windowX - 1],
sizeof(ConsoleChar)*con->windowWidth);
}
}