MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / RedrawScreenDebug

Method RedrawScreenDebug

src/video/win32_v.cpp:1277–1290  ·  view source on GitHub ↗

Keep this function here.. * It allows you to redraw the screen from within the MSVC debugger */ static */

Source from the content-addressed store, hash-verified

1275/* Keep this function here..
1276 * It allows you to redraw the screen from within the MSVC debugger */
1277/* static */ int VideoDriver_Win32GDI::RedrawScreenDebug()
1278{
1279 static int _fooctr;
1280
1281 VideoDriver_Win32GDI *drv = static_cast<VideoDriver_Win32GDI *>(VideoDriver::GetInstance());
1282
1283 _screen.dst_ptr = drv->GetVideoPointer();
1284 UpdateWindows();
1285
1286 drv->Paint();
1287 GdiFlush();
1288
1289 return _fooctr++;
1290}
1291#endif
1292
1293#ifdef WITH_OPENGL

Callers

nothing calls this directly

Calls 3

UpdateWindowsFunction · 0.85
GetVideoPointerMethod · 0.45
PaintMethod · 0.45

Tested by

no test coverage detected