* Show the mouse if needed. Should be used in combination with * #GUI_Mouse_Hide_InRegion(). */
| 3974 | * #GUI_Mouse_Hide_InRegion(). |
| 3975 | */ |
| 3976 | void GUI_Mouse_Show_InRegion(void) |
| 3977 | { |
| 3978 | uint8 counter; |
| 3979 | |
| 3980 | while (g_mouseLock != 0) sleepIdle(); |
| 3981 | g_mouseLock++; |
| 3982 | |
| 3983 | counter = g_regionFlags & 0xFF; |
| 3984 | if (counter == 0 || --counter != 0) { |
| 3985 | g_regionFlags = (g_regionFlags & 0xFF00) | (counter & 0xFF); |
| 3986 | g_mouseLock--; |
| 3987 | return; |
| 3988 | } |
| 3989 | |
| 3990 | if ((g_regionFlags & 0x4000) != 0) { |
| 3991 | GUI_Mouse_Show(); |
| 3992 | } |
| 3993 | |
| 3994 | g_regionFlags = 0; |
| 3995 | g_mouseLock--; |
| 3996 | } |
| 3997 | |
| 3998 | /** |
| 3999 | * Hide the mouse when it is inside the specified region. Works with |
no test coverage detected