Skip to content

Commit

Permalink
use size(scene)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Nov 4, 2024
1 parent 3dfd1a1 commit a6adc08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recording.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function Base.show(io::IO, ::MIME"text/html", vs::VideoStream)
if !(scene isa Scene)
error("Expected Screen to hold a reference to a Scene but got $(repr(scene))")
end
w, h = scene.viewport[].widths
w, h = size(scene)
mktempdir() do dir
path = save(joinpath(dir, "video.mp4"), vs)
# <video> only supports infinite looping, so we loop forever even when a finite number is requested
Expand Down

0 comments on commit a6adc08

Please sign in to comment.