mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-23 20:08:05 -08:00
Stop using d2d.surface_size()
This commit is contained in:
@@ -45,11 +45,13 @@ function this.update_window_size()
|
||||
local width;
|
||||
local height;
|
||||
|
||||
if d2d ~= nil and config.current_config.global_settings.renderer.use_d2d_if_available then
|
||||
width, height = d2d.surface_size();
|
||||
else
|
||||
width, height = this.get_game_window_size();
|
||||
end
|
||||
-- if d2d ~= nil and config.current_config.global_settings.renderer.use_d2d_if_available then
|
||||
-- width, height = d2d.surface_size();
|
||||
-- else
|
||||
-- width, height = this.get_game_window_size();
|
||||
-- end
|
||||
|
||||
width, height = this.get_game_window_size();
|
||||
|
||||
if width ~= nil then
|
||||
this.width = width;
|
||||
|
||||
Reference in New Issue
Block a user