Add use_d2d_if_available option

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

No files matched your search

@@ -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();