fix MovieClock ui, bad gui.text() usage, also use current frame count instead of movie length

This commit is contained in:
adelikat 2020-10-17 13:33:13 -05:00
parent 58aa64b5d6
commit bd64530ce5
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
while true do
if (movie.isloaded()) then
fps = movie.getfps();
frames = movie.length();
frames = emu.framecount();
tseconds = (frames / fps)
secondsraw = tseconds % 60;
shift = 10 ^ 2;
@ -23,7 +23,7 @@ while true do
if (hours > 0) then
time = "0" .. hours .. ":" .. time;
end
gui.text(0, 0, time, null, null, 1);
gui.text(0, 0, time, null, 1);
end
emu.frameadvance();
end