fix: osd resolution initializing incorrectly (#383)

* fix: only update resolution when it's > 0

* fix: only render after the resolution has been initialized

* chore: update type annotation to fix warning
This commit is contained in:
christoph-heinrich
2022-12-04 09:09:20 +01:00
committed by GitHub
parent b75ceb6d6f
commit 8b863a611f
3 changed files with 14 additions and 4 deletions

View File

@@ -502,6 +502,7 @@ end
--[[ RENDERING ]]
function render()
if not display.initialized then return end
state.render_last_time = mp.get_time()
-- Actual rendering