mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-10-29 04:24:07 -07:00
Add use_d2d_if_available option
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user