===========================================================================
| 10128 | |
| 10129 | //=========================================================================== |
| 10130 | void 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 | //=========================================================================== |
no test coverage detected