MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / GUI_Mouse_Hide

Function GUI_Mouse_Hide

src/gui/gui.c:3927–3940  ·  view source on GitHub ↗

* Hide the mouse from the screen. Do this by copying the mouse buffer back to * the screen. */

Source from the content-addressed store, hash-verified

3925 * the screen.
3926 */
3927void GUI_Mouse_Hide(void)
3928{
3929 if (g_mouseDisabled == 1) return;
3930
3931 if (g_mouseHiddenDepth == 0 && s_mouseSpriteWidth != 0) {
3932 if (g_mouseSpriteBuffer != NULL) {
3933 GFX_CopyFromBuffer(s_mouseSpriteLeft * 8, s_mouseSpriteTop, s_mouseSpriteWidth * 8, s_mouseSpriteHeight, g_mouseSpriteBuffer);
3934 }
3935
3936 s_mouseSpriteWidth = 0;
3937 }
3938
3939 g_mouseHiddenDepth++;
3940}
3941
3942/**
3943 * The safe version of GUI_Mouse_Hide(). It waits for a mouselock before doing

Callers 6

Sprites_SetMouseSpriteFunction · 0.85
GUI_Mouse_Hide_SafeFunction · 0.85
GUI_Mouse_Hide_InRegionFunction · 0.85
GUI_Mouse_SetPositionFunction · 0.85
Input_HandleInputFunction · 0.85
Mouse_CheckMovementFunction · 0.85

Calls 1

GFX_CopyFromBufferFunction · 0.85

Tested by

no test coverage detected