From 2d669a6c4af8d16a5d5e6d379dcb7b5981b0bb1d Mon Sep 17 00:00:00 2001 From: GreenComfyTea Date: Wed, 16 Aug 2023 12:36:48 +0300 Subject: [PATCH] Stop using d2d.surface_size() --- .../autorun/MHR_Overlay/Game_Handler/screen.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua b/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua index ae3fb87..c5c764b 100644 --- a/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua +++ b/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua @@ -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;