Skip to content

Commit 13ad4a9

Browse files
committed
set confirm overlay size according to scaled interface
1 parent 87d88c6 commit 13ad4a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

confirm.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ function ConfirmOverlay:init()
6666
end
6767

6868
function ConfirmOverlay:preUpdateLayout()
69-
self.frame.w, self.frame.h = dfhack.screen.getWindowSize()
69+
local interface_rect = gui.get_interface_rect()
70+
self.frame.w, self.frame.h = interface_rect.width, interface_rect.height
7071
-- reset frames if any of them have been pushed out of position
7172
for id, conf in pairs(specs.REGISTRY) do
7273
if conf.intercept_frame then

0 commit comments

Comments
 (0)