Beispiel #1
0
 public DoubleBufferConsoleRenderer(int visibleConsoleRows, int visibleConsoleCols)
 {
     visibleCols           = visibleConsoleCols;
     visibleRows           = visibleConsoleRows;
     Console.CursorVisible = false;
     Console.SetWindowSize(visibleConsoleCols + 1, visibleConsoleRows + 3);
     ConsoleBuffer        = new buffer(visibleConsoleCols, visibleConsoleRows, visibleConsoleCols, visibleConsoleRows);
     Console.BufferHeight = visibleConsoleRows + 3;
     Console.BufferWidth  = visibleConsoleCols + 1;
 }
 public DoubleBufferConsoleRenderer(int visibleConsoleRows, int visibleConsoleCols)
 {
     visibleCols = visibleConsoleCols;
     visibleRows = visibleConsoleRows;
     Console.CursorVisible = false;
     Console.SetWindowSize(visibleConsoleCols + 1, visibleConsoleRows + 3);
     ConsoleBuffer = new buffer(visibleConsoleCols, visibleConsoleRows, visibleConsoleCols, visibleConsoleRows);
     Console.BufferHeight = visibleConsoleRows + 3;
     Console.BufferWidth = visibleConsoleCols + 1;
 }