MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / UndrawCursor

Function UndrawCursor

Source/engine/render/scrollrt.cpp:209–214  ·  view source on GitHub ↗

* @brief Remove the cursor from the buffer */

Source from the content-addressed store, hash-verified

207 * @brief Remove the cursor from the buffer
208 */
209void UndrawCursor(const Surface &out)
210{
211 DrawnCursor &cursor = GetDrawnCursor();
212 BlitCursor(&out[cursor.rect.position], out.pitch(), cursor.behindBuffer, cursor.rect.size.width, cursor.rect.size.width, cursor.rect.size.height);
213 PrevCursorRect = cursor.rect;
214}
215
216bool ShouldShowCursor()
217{

Callers 2

DrawAndBlitFunction · 0.85

Calls 2

BlitCursorFunction · 0.85
pitchMethod · 0.80

Tested by

no test coverage detected