mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
box-drawing: don’t inline _thickness()
It results in quite a lot of floating point instructions being emitted in almost every box drawing function we have...
This commit is contained in:
parent
b48414e72c
commit
25ce458281
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ change_buffer_format(struct buf *buf, pixman_format_code_t new_format)
|
|||
buf->stride = stride;
|
||||
}
|
||||
|
||||
static int
|
||||
static int NOINLINE
|
||||
_thickness(struct buf *buf, enum thickness thick)
|
||||
{
|
||||
return max((int)(buf->base_thickness * buf->dpi / 72.0 * buf->cell_size), 1) * thick;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue