From 4c192538052e74b2c20bd09b8592bd64ce89206e Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 28 Aug 2023 09:07:22 +0200 Subject: [PATCH] extended list of known renderers to latest SDL --- src/common/FBBackendSDL2.cxx | 16 +++++++++------- src/gui/VideoAudioDialog.cxx | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/common/FBBackendSDL2.cxx b/src/common/FBBackendSDL2.cxx index f642353f3..94ef23dc6 100644 --- a/src/common/FBBackendSDL2.cxx +++ b/src/common/FBBackendSDL2.cxx @@ -156,13 +156,15 @@ void FBBackendSDL2::queryHardware(vector& fullscreenRes, string stellaName; }; // Create name map for all currently known SDL renderers - static const std::array RENDERER_NAMES = {{ - { "direct3d", "Direct3D" }, - { "metal", "Metal" }, - { "opengl", "OpenGL" }, - { "opengles", "OpenGLES" }, - { "opengles2", "OpenGLES2" }, - { "software", "Software" } + static const std::array RENDERER_NAMES = {{ + { "direct3d", "Direct3D" }, + { "direct3d11", "Direct3D 11" }, + { "direct3d12", "Direct3D 12" }, + { "metal", "Metal" }, + { "opengl", "OpenGL" }, + { "opengles", "OpenGL ES" }, + { "opengles2", "OpenGL ES 2" }, + { "software", "Software" } }}; const int numDrivers = SDL_GetNumRenderDrivers(); diff --git a/src/gui/VideoAudioDialog.cxx b/src/gui/VideoAudioDialog.cxx index 781af548f..b7adba372 100644 --- a/src/gui/VideoAudioDialog.cxx +++ b/src/gui/VideoAudioDialog.cxx @@ -113,7 +113,7 @@ void VideoAudioDialog::addDisplayTab() VGAP = Dialog::vGap(); const int INDENT = CheckboxWidget::prefixSize(_font); const int lwidth = _font.getStringWidth("V-Size adjust "), - pwidth = _font.getStringWidth("OpenGLES2"); + pwidth = _font.getStringWidth("Direct3D 12"); const int xpos = HBORDER; int ypos = VBORDER; WidgetArray wid;