Skip to content
Snippets Groups Projects
Commit 07397260 authored by deuce's avatar deuce
Browse files

Call SetConsoleWindowInfo() twice... in case it tries to make the screen

buffer smaller than the window.
parent 044100ee
No related branches found
No related tags found
No related merge requests found
......@@ -251,12 +251,13 @@ void win32_textmode(int mode)
}
sz.X=vid_modes[modeidx].xsize;
sz.Y=vid_modes[modeidx].ysize;
SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE),sz);
rc.Left=0;
rc.Right=vid_modes[modeidx].xsize-1;
rc.Top=0;
rc.Bottom=vid_modes[modeidx].ysize-1;
SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE),TRUE,&rc);
SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE),sz);
SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE),TRUE,&rc);
}
int win32_gettext(int left, int top, int right, int bottom, void* buf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment