Skip to content
Myr

render: don’t allow negative surface widths

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

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 0f606fa · Browse files · 1 file+3 added−2 removed
This commit

State

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

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:render.c+3 added-2 removed
488 unmodified lines
489490 const unsigned width =491 border_size +492 x_margin +493 (W->advance.x + pt_or_px_as_pixels(494 &render->options.letter_spacing, dpi)) * render->options.chars +493 (max((W->advance.x + pt_or_px_as_pixels(494 &render->options.letter_spacing, dpi)), 0)495 * render->options.chars) +496 x_margin +497 border_size;498499 LOG_DBG("x-margin: %d, y-margin: %d, border: %d, row-height: %d, "
26 unmodified lines