mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Stop using d2d.surface_size()
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user