• Alexandru Băluț's avatar
    previewers: Fix squished audio waveform · ba117e11
    Alexandru Băluț authored
    Refactored the code to calculate `surface_width` correctly. As a result,
    removed some handlers which are not needed anymore, along with the
    `_force_redraw` field. Now when the pre-drawn `surface` is created we
    store the start, end, zoom, which are checked later in `do_draw` to
    determine whether a new pre-drawn `surface` is needed.
    
    Delayed the conversion of float values to int as much as possible, to
    avoid small inconsistencies in how we calculate the `offset` at which
    the `surface` is drawn.
    
    Fixes #2195
    ba117e11
Name
Last commit
Last update
bin Loading commit data...
build/flatpak Loading commit data...
data Loading commit data...
docs Loading commit data...
gettext/its Loading commit data...
help Loading commit data...
pitivi Loading commit data...
plugins/console Loading commit data...
po Loading commit data...
subprojects Loading commit data...
tests Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
.pre-commit-config.yaml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
MAINTAINERS Loading commit data...
NEWS Loading commit data...
README Loading commit data...
getenvvar.py Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
pitivi.doap Loading commit data...
pre-commit.hook Loading commit data...