Major step in the new AVR interface to send commands. It compiles, but is untested. The old code and function remains active.
This commit is contained in:
@@ -35,16 +35,6 @@ void Console_Init(short Width, short Height, short bottomScrollHeight) {
|
||||
newSize.X = consoleWidth; // columns
|
||||
newSize.Y = consoleHeight; // rows
|
||||
|
||||
// Step 1: Shrink window if needed before shrinking buffer
|
||||
SMALL_RECT tempWindow = csbi.srWindow;
|
||||
tempWindow.Right = tempWindow.Left + (newSize.X - 1);
|
||||
tempWindow.Bottom = tempWindow.Top + (newSize.Y - 1);
|
||||
|
||||
if (!SetConsoleWindowInfo(hStdout, TRUE, &tempWindow)) {
|
||||
fprintf(stderr, "Error: Unable to temporarily resize window. Code: %lu\n", GetLastError());
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Step 2: Set new buffer size
|
||||
if (!SetConsoleScreenBufferSize(hStdout, newSize)) {
|
||||
fprintf(stderr, "Error: Unable to set console buffer size. Code: %lu\n", GetLastError());
|
||||
|
||||
Reference in New Issue
Block a user