1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

remove dinput_show_cursor setting

This commit is contained in:
FunkyFr3sh 2023-07-31 10:42:02 +02:00
parent 6170e267f2
commit 6989cb806e
3 changed files with 2 additions and 6 deletions

View File

@ -140,7 +140,6 @@ typedef struct CNCDDRAW
BOOL wine;
HCURSOR old_cursor;
int show_cursor_count;
BOOL dinput_show_cursor;
BOOL allow_wmactivate;
BOOL opengl_core;
BOOL accurate_timers;

View File

@ -46,7 +46,6 @@ void cfg_load()
g_ddraw->d3d9_filter = cfg_get_int("d3d9_filter", FILTER_CUBIC);
g_ddraw->d3d9on12 = cfg_get_bool("d3d9on12", FALSE);
g_ddraw->resolutions = cfg_get_int("resolutions", RESLIST_NORMAL);
g_ddraw->dinput_show_cursor = cfg_get_bool("dinput_show_cursor", FALSE);
g_ddraw->allow_wmactivate = cfg_get_bool("allow_wmactivate", FALSE);
g_ddraw->guard_lines = cfg_get_int("guard_lines", 200);
g_ddraw->max_resolutions = cfg_get_int("max_resolutions", 0);
@ -374,8 +373,7 @@ static void cfg_create_ini()
"fixmousehook=false\n"
"bpp=0\n"
"rgb555=false\n"
"hook_peekmessage=false\n"
"dinput_show_cursor=false\n"
"hook_peekmessage=false\n"
"no_dinput_hook=false\n"
"\n"
"\n"
@ -1027,7 +1025,6 @@ static void cfg_create_ini()
"; RollerCoaster Tycoon\n"
"[rct]\n"
"no_dinput_hook=true\n"
"dinput_show_cursor=true\n"
"singlecpu=false\n"
"maxfps=0\n"
"adjmouse=true\n"

View File

@ -40,7 +40,7 @@ static HRESULT WINAPI fake_did_SetCooperativeLevel(IDirectInputDeviceA* This, HW
{
TRACE("DirectInput SetCooperativeLevel(This=%p, hwnd=%p, dwFlags=0x%08X)\n", This, hwnd, dwFlags);
if (This == g_mouse_device && g_ddraw && (dwFlags & DISCL_EXCLUSIVE) && !g_ddraw->dinput_show_cursor)
if (This == g_mouse_device && g_ddraw && (dwFlags & DISCL_EXCLUSIVE))
{
if (g_mouse_locked || g_ddraw->devmode)
{