mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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)
|
int WINAPI fake_ShowCursor(BOOL bShow)
|
||||||
{
|
{
|
||||||
|
static int count;
|
||||||
|
|
||||||
if (ddraw && !ddraw->handlemouse)
|
if (ddraw && !ddraw->handlemouse)
|
||||||
return ShowCursor(bShow);
|
return ShowCursor(bShow);
|
||||||
|
|
||||||
return TRUE;
|
return bShow ? ++count : --count;
|
||||||
}
|
}
|
||||||
|
|
||||||
HCURSOR WINAPI fake_SetCursor(HCURSOR hCursor)
|
HCURSOR WINAPI fake_SetCursor(HCURSOR hCursor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user