use fake counter for ShowCursor
This commit is contained in:
parent
6a2674e372
commit
4beebeb8cd
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue