Stop using d2d.surface_size()

This commit is contained in:
GreenComfyTea
2023-08-16 12:36:48 +03:00
parent 2d77b78a1c
commit 2d669a6c4a

View File

@@ -45,11 +45,13 @@ function this.update_window_size()
local width; local width;
local height; local height;
if d2d ~= nil and config.current_config.global_settings.renderer.use_d2d_if_available then -- if d2d ~= nil and config.current_config.global_settings.renderer.use_d2d_if_available then
width, height = d2d.surface_size(); -- width, height = d2d.surface_size();
else -- else
width, height = this.get_game_window_size(); -- width, height = this.get_game_window_size();
end -- end
width, height = this.get_game_window_size();
if width ~= nil then if width ~= nil then
this.width = width; this.width = width;