extended list of known renderers to latest SDL

This commit is contained in:
thrust26 2023-08-28 09:07:22 +02:00
parent 074c6ae4ca
commit c2460b7c17
2 changed files with 10 additions and 8 deletions

View File

@ -156,13 +156,15 @@ void FBBackendSDL2::queryHardware(vector<Common::Size>& fullscreenRes,
string stellaName; string stellaName;
}; };
// Create name map for all currently known SDL renderers // Create name map for all currently known SDL renderers
static const std::array<RenderName, 6> RENDERER_NAMES = {{ static const std::array<RenderName, 8> RENDERER_NAMES = {{
{ "direct3d", "Direct3D" }, { "direct3d", "Direct3D" },
{ "metal", "Metal" }, { "direct3d11", "Direct3D 11" },
{ "opengl", "OpenGL" }, { "direct3d12", "Direct3D 12" },
{ "opengles", "OpenGLES" }, { "metal", "Metal" },
{ "opengles2", "OpenGLES2" }, { "opengl", "OpenGL" },
{ "software", "Software" } { "opengles", "OpenGL ES" },
{ "opengles2", "OpenGL ES 2" },
{ "software", "Software" }
}}; }};
const int numDrivers = SDL_GetNumRenderDrivers(); const int numDrivers = SDL_GetNumRenderDrivers();

View File

@ -113,7 +113,7 @@ void VideoAudioDialog::addDisplayTab()
VGAP = Dialog::vGap(); VGAP = Dialog::vGap();
const int INDENT = CheckboxWidget::prefixSize(_font); const int INDENT = CheckboxWidget::prefixSize(_font);
const int lwidth = _font.getStringWidth("V-Size adjust "), const int lwidth = _font.getStringWidth("V-Size adjust "),
pwidth = _font.getStringWidth("OpenGLES2"); pwidth = _font.getStringWidth("Direct3D 12");
const int xpos = HBORDER; const int xpos = HBORDER;
int ypos = VBORDER; int ypos = VBORDER;
WidgetArray wid; WidgetArray wid;