mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-08-05 16:09:24 +02:00
adjust for 1-based windows - https://github.com/switchbrew/libnx/pull/682
This commit is contained in:
parent
f9313954a4
commit
cfd4979a89
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user