MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / WinClearScreen

Function WinClearScreen

xgeneral.cpp:526–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524// Clear and erase the entire graphics screen on Windows.
525
526void WinClearScreen(KI ki)
527{
528 KV kv = KvFromKi(ki);
529
530 wi.hbrush = CreateSolidBrush((COLORREF)kv);
531 SelectObject(wi.hdc, wi.hbrush);
532 PatBlt(wi.hdc, -gi.xOffset, -gi.yOffset,
533 wi.xClient*wi.nScaleWin, wi.yClient*wi.nScaleWin, PATCOPY);
534 SelectObject(wi.hdc, GetStockObject(NULL_BRUSH));
535 DeleteObject(wi.hbrush);
536}
537#endif
538
539

Callers 1

DrawClearScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected