Skip to content

Commit

Permalink
Make VideoStream aware of px_per_unit
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored Oct 9, 2024
1 parent 21a78c8 commit 132ed3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ffmpeg-util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function VideoStream(fig::FigureLike;
get!(config, :visible, visible)
get!(config, :start_renderloop, false)
screen = getscreen(backend, scene, config, GLNative)
_xdim, _ydim = size(screen)
_xdim, _ydim = ceil.(Int, size(screen) .* screen.config.px_per_unit)
xdim = iseven(_xdim) ? _xdim : _xdim + 1
ydim = iseven(_ydim) ? _ydim : _ydim + 1
buffer = Matrix{RGB{N0f8}}(undef, xdim, ydim)
Expand Down

0 comments on commit 132ed3f

Please sign in to comment.