MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DebuggerCursorUpdate

Function DebuggerCursorUpdate

source/Debugger/Debug.cpp:10130–10153  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

10128
10129//===========================================================================
10130void DebuggerCursorUpdate ()
10131{
10132 if (g_nAppMode != MODE_DEBUG)
10133 return;
10134
10135 const int nUpdatesPerSecond = 4;
10136 const uint32_t nUpdateInternal_ms = 1000 / nUpdatesPerSecond;
10137 static uint32_t nBeg = GetTickCount(); // timeGetTime();
10138 uint32_t nNow = GetTickCount(); // timeGetTime();
10139
10140 if (((nNow - nBeg) >= nUpdateInternal_ms) && !DebugVideoMode::Instance().IsSet())
10141 {
10142 nBeg = nNow;
10143
10144 DebuggerCursorNext();
10145
10146 DrawConsoleCursor();
10147 StretchBltMemToFrameDC();
10148 }
10149 else
10150 {
10151 Sleep(1); // Stop process hogging CPU
10152 }
10153}
10154
10155
10156//===========================================================================

Callers 1

DebuggerUpdateFunction · 0.85

Calls 4

DebuggerCursorNextFunction · 0.85
DrawConsoleCursorFunction · 0.85
StretchBltMemToFrameDCFunction · 0.85
IsSetMethod · 0.80

Tested by

no test coverage detected