* Hide the mouse from the screen. Do this by copying the mouse buffer back to * the screen. */
| 3925 | * the screen. |
| 3926 | */ |
| 3927 | void 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 |
no test coverage detected