• 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
..
coptimizations Loading commit data...
dialogs Loading commit data...
timeline Loading commit data...
undo Loading commit data...
utils Loading commit data...
viewer Loading commit data...
__init__.py Loading commit data...
application.py Loading commit data...
autoaligner.py Loading commit data...
check.py Loading commit data...
clipproperties.py Loading commit data...
configure.py.in Loading commit data...
editorperspective.py Loading commit data...
effects.py Loading commit data...
greeterperspective.py Loading commit data...
mainwindow.py Loading commit data...
mediafilespreviewer.py Loading commit data...
medialibrary.py Loading commit data...
perspective.py Loading commit data...
pluginmanager.py Loading commit data...
preset.py Loading commit data...
project.py Loading commit data...
render.py Loading commit data...
settings.py Loading commit data...
shortcuts.py Loading commit data...
tabsmanager.py Loading commit data...
titleeditor.py Loading commit data...
transitions.py Loading commit data...