1
0
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:
FunkyFr3sh 2018-11-18 05:08:27 +01:00
parent 6a2674e372
commit 4beebeb8cd

View File

@ -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)