MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / BeginConsoleUpdate

Function BeginConsoleUpdate

PresentMon/Console.cpp:179–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179bool BeginConsoleUpdate()
180{
181 if (!gStdoutIsConsole) {
182 return false;
183 }
184
185 HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
186
187 CONSOLE_SCREEN_BUFFER_INFO info = {};
188 GetConsoleScreenBufferInfo(console, &info);
189
190 gWritePosition = info.dwCursorPosition;
191
192 return true;
193}
194
195void EndConsoleUpdate()
196{

Callers 2

OutputFunction · 0.85
FinalizeConsoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected