mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 14:14:47 +01:00
use fake counter for ShowCursor
This commit is contained in:
parent
6a2674e372
commit
4beebeb8cd
@ -124,10 +124,12 @@ BOOL WINAPI fake_ClipCursor(const RECT *lpRect)
|
||||
|
||||
int WINAPI fake_ShowCursor(BOOL bShow)
|
||||
{
|
||||
static int count;
|
||||
|
||||
if (ddraw && !ddraw->handlemouse)
|
||||
return ShowCursor(bShow);
|
||||
|
||||
return TRUE;
|
||||
return bShow ? ++count : --count;
|
||||
}
|
||||
|
||||
HCURSOR WINAPI fake_SetCursor(HCURSOR hCursor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user