Skip to content
Myr

render: handle non-sensical image-size-ratio=0 case

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #739 Treat it like 1 and disable the feature.

authored by Mark Stosberg · committed by Mark Stosberg · parent 02f7346 · Browse files · 3 files+10 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+10 added−1 removed

  • other:+10 added−1 removed

3 files+10 added−1 removed

modified:doc/fuzzel.ini.5.scd+1 added-1 removed
346 unmodified lines
347 pixels. Default: _0_.348349*image-size-ratio*350 The ratio of the large image displayed when there are only a "few"351 matches, compared to the full window size. Set to 1 to disable the351 matches, compared to the full window size. Set to 0 or 1 to disable352 the large images. Default: _0.5_.353354*line-height*355 Override line height from font metrics. Default: use font metrics.
378 unmodified lines
modified:CHANGELOG.md+8 added
37 unmodified lines
38### Changed39### Deprecated40### Removed41### Fixed4243* `image-size-ratio=0` causing a crash due to a zero-size allocation44 ([#739][739]).4546[739]: https://codeberg.org/dnkl/fuzzel/issues/7394748### Security49### Contributors5051* markstos525354## 1.14.15556### Fixed57
1142 unmodified lines
modified:render.c+1 added
1666 unmodified lines
16671668 LOG_DBG("img_y=%f, list_end=%f", img_y, list_end);16691670 if (render_icons &&1671 size > 0 &&1672 match->application->icon.type == ICON_SVG &&1673 img_y > list_end + render->row_height)1674 {1675 render_svg(&match->application->icon, img_x, img_y, size, pix, cairo,
512 unmodified lines