From 6c914bed0680c5854e6ab5a5a31a566b29194778 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Fri, 20 Dec 2024 21:03:57 +0100 Subject: [PATCH] Add GDI system feature --- config.features.h | 6 ++++++ intl/msg_hash_us.h | 4 ++++ menu/menu_displaylist.c | 3 +++ msg_hash.h | 1 + retroarch.c | 3 +++ 5 files changed, 17 insertions(+) diff --git a/config.features.h b/config.features.h index 3a8a2f2dc3..b0f36bd706 100644 --- a/config.features.h +++ b/config.features.h @@ -104,6 +104,12 @@ #define SUPPORTS_D3D12 false #endif +#ifdef HAVE_GDI +#define SUPPORTS_GDI true +#else +#define SUPPORTS_GDI false +#endif + #ifdef HAVE_VULKAN #define SUPPORTS_VULKAN true #else diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index cc4d2ed0f1..47e184222a 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -750,6 +750,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_D3D12_SUPPORT, "Direct3D 12 Support" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GDI_SUPPORT, + "GDI Support" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT, "Vulkan Support" diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 1d2269812f..44bc6937e9 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -2288,6 +2288,9 @@ static unsigned menu_displaylist_parse_system_info(file_list_t *list) #ifdef HAVE_SDL2 {SUPPORTS_SDL2 , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT}, #endif +#ifdef HAVE_GDI + {SUPPORTS_GDI , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GDI_SUPPORT}, +#endif #ifdef HAVE_D3D8 {SUPPORTS_D3D8 , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_D3D8_SUPPORT}, #endif diff --git a/msg_hash.h b/msg_hash.h index 815c0aa33d..4d848b9bef 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -3508,6 +3508,7 @@ enum msg_hash_enums MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RPNG_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT, + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GDI_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_D3D8_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_D3D9_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_D3D10_SUPPORT, diff --git a/retroarch.c b/retroarch.c index 815968a149..e8178e18dc 100644 --- a/retroarch.c +++ b/retroarch.c @@ -6132,6 +6132,9 @@ static void retroarch_print_features(void) #ifdef HAVE_THREADS _len += _PSUPP_BUF(buf, _len, SUPPORTS_THREAD, "Threads", "Threading support"); #endif +#ifdef HAVE_GDI + _len += _PSUPP_BUF(buf, _len, SUPPORTS_GDI, "GDI", "Video driver"); +#endif #ifdef HAVE_D3D8 _len += _PSUPP_BUF(buf, _len, SUPPORTS_D3D8, "Direct3D 8", "Video driver"); #endif