File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,11 @@ local cursor = 1
78
78
local prompt
79
79
local id
80
80
81
+ local overlay = mp .create_osd_overlay (" ass-events" )
82
+ local width_overlay = mp .create_osd_overlay (" ass-events" )
83
+ width_overlay .compute_bounds = true
84
+ width_overlay .hidden = true
85
+
81
86
local histories = {}
82
87
local history = {}
83
88
local history_pos = 1
@@ -88,8 +93,6 @@ local histories_to_save = {}
88
93
local log_buffers = {}
89
94
local key_bindings = {}
90
95
local dont_bind_up_down = false
91
- local overlay = mp .create_osd_overlay (" ass-events" )
92
- local width_overlay = mp .create_osd_overlay (" ass-events" )
93
96
local global_margins = { t = 0 , b = 0 }
94
97
local input_caller
95
98
local keep_open = false
@@ -328,8 +331,6 @@ local function calculate_max_item_width()
328
331
329
332
local osd_w , osd_h = get_scaled_osd_dimensions ()
330
333
local font = get_font ()
331
- width_overlay .compute_bounds = true
332
- width_overlay .hidden = true
333
334
width_overlay .res_x = osd_w
334
335
width_overlay .res_y = osd_h
335
336
width_overlay .data = " {\\ fs" .. opts .font_size ..
You can’t perform that action at this time.
0 commit comments