Add use_d2d_if_available option

This commit is contained in:
GreenComfyTea
2022-11-25 12:38:34 +02:00
parent b36b1080df
commit a0e6974ad7
13 changed files with 70 additions and 73 deletions

View File

@@ -10,7 +10,7 @@ function screen.update_window_size()
local width;
local height;
if d2d ~= nil then
if d2d ~= nil and config.current_config.global_settings.renderer.use_d2d_if_available then
width, height = d2d.surface_size();
else
width, height = screen.get_game_window_size();