From e596bf7925bc3fb2e80a4ab03acfce204c55a8ed Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 2 Aug 2021 16:19:26 +0200 Subject: [PATCH] Buildfix for previous commit --- gfx/drivers/d3d10.c | 1 - gfx/drivers/d3d11.c | 1 - gfx/drivers/d3d12.c | 1 - gfx/drivers/d3d8.c | 1 - gfx/drivers/d3d9.c | 1 - gfx/drivers/gdi_gfx.c | 1 - gfx/drivers_context/w_vk_ctx.c | 1 - gfx/drivers_context/wgl_ctx.c | 1 - 8 files changed, 8 deletions(-) diff --git a/gfx/drivers/d3d10.c b/gfx/drivers/d3d10.c index 60457d4264..07182da906 100644 --- a/gfx/drivers/d3d10.c +++ b/gfx/drivers/d3d10.c @@ -651,7 +651,6 @@ static void *d3d10_gfx_init(const video_info_t* video, #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) wndclass.lpfnWndProc = wnd_proc_d3d_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw")) diff --git a/gfx/drivers/d3d11.c b/gfx/drivers/d3d11.c index f321bd2e6e..262963ea2a 100644 --- a/gfx/drivers/d3d11.c +++ b/gfx/drivers/d3d11.c @@ -814,7 +814,6 @@ static void *d3d11_gfx_init(const video_info_t* video, #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) wndclass.lpfnWndProc = wnd_proc_d3d_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw")) diff --git a/gfx/drivers/d3d12.c b/gfx/drivers/d3d12.c index a4ad51b9c6..882cba9a38 100644 --- a/gfx/drivers/d3d12.c +++ b/gfx/drivers/d3d12.c @@ -923,7 +923,6 @@ static void *d3d12_gfx_init(const video_info_t* video, #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) wndclass.lpfnWndProc = wnd_proc_d3d_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw")) diff --git a/gfx/drivers/d3d8.c b/gfx/drivers/d3d8.c index fb59eec34b..ba37565927 100644 --- a/gfx/drivers/d3d8.c +++ b/gfx/drivers/d3d8.c @@ -1152,7 +1152,6 @@ static bool d3d8_init_internal(d3d8_video_t *d3d, #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) d3d->windowClass.lpfnWndProc = wnd_proc_d3d_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw")) diff --git a/gfx/drivers/d3d9.c b/gfx/drivers/d3d9.c index 632d384bf3..8fd4cd551a 100644 --- a/gfx/drivers/d3d9.c +++ b/gfx/drivers/d3d9.c @@ -1152,7 +1152,6 @@ static bool d3d9_init_internal(d3d9_video_t *d3d, #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) d3d->windowClass.lpfnWndProc = wnd_proc_d3d_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw")) diff --git a/gfx/drivers/gdi_gfx.c b/gfx/drivers/gdi_gfx.c index 807bc3a6d1..f5aaca133b 100644 --- a/gfx/drivers/gdi_gfx.c +++ b/gfx/drivers/gdi_gfx.c @@ -104,7 +104,6 @@ static bool gfx_ctx_gdi_init(void) #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) wndclass.lpfnWndProc = wnd_proc_gdi_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw")) diff --git a/gfx/drivers_context/w_vk_ctx.c b/gfx/drivers_context/w_vk_ctx.c index 467d5f8417..b3562e0789 100644 --- a/gfx/drivers_context/w_vk_ctx.c +++ b/gfx/drivers_context/w_vk_ctx.c @@ -222,7 +222,6 @@ static void *gfx_ctx_w_vk_init(void *video_driver) #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) wndclass.lpfnWndProc = wnd_proc_vk_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw")) diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c index 7142b87551..c27993b035 100644 --- a/gfx/drivers_context/wgl_ctx.c +++ b/gfx/drivers_context/wgl_ctx.c @@ -636,7 +636,6 @@ static void *gfx_ctx_wgl_init(void *video_driver) #ifdef HAVE_DINPUT if (string_is_equal(settings->arrays.input_driver, "dinput")) wndclass.lpfnWndProc = wnd_proc_wgl_dinput; - else #endif #ifdef HAVE_WINRAWINPUT if (string_is_equal(settings->arrays.input_driver, "raw"))