add config option sdl_renderer_driver

This commit is contained in:
Ondřej Novák 2025-05-01 21:21:22 +02:00
parent f383260a98
commit 93ec526482
9 changed files with 56 additions and 8 deletions

View file

@ -41,6 +41,7 @@ char game_display_init(const INI_CONFIG_SECTION *display_section, const char *ti
else cfg.crt_filter = SDLContext::CrtFilterType::autoselect;
cfg.cursor_size = ini_get_int(display_section, "cursor_size", 100)*0.01f;
cfg.hint_renderer = ini_get_string(display_section, "sdl_renderer_driver", NULL);
screen_pitch = 640;
get_sdl_global_context().init_video(cfg, title);