Ori Bernstein
c207b78d07
libdraw: add bezierpts
...
This patch exposes the bezierpts function,
providing a way to get the points on a path,
similar how bezsplinepts gives them for b
splines.
2021-01-09 12:20:49 -08:00
cinap_lenrek
d4a6dc8910
libdraw: get rid of _drawdebug variable
2017-04-29 21:03:52 +02:00
cinap_lenrek
1787584ad8
libdraw: avoid BPSHORT()/BPLONG() expansion, cleanup loadchar(),cachechars()
...
assigning the expression value to a temporary variable in
BPSHORT() and BPLONG() saves arround 2K of text in rio on
arm and arround 1K on amd64.
loadchar(): use the passed in "h" as the char index instead
of recomputing it from c-f->cache. dont recompute wid.
cachechars(): do cache lookup and find oldest entry in a
single loop pass.
2016-04-13 00:34:48 +02:00
cinap_lenrek
75186be2c2
libdraw: remove unused static log2[] array
2016-02-28 01:38:29 +01:00
ftrvxmtrx
be36fab405
remove drawlsetrefresh and convM2Tnoenc: undefined functions
2015-06-09 18:25:09 +02:00
cinap_lenrek
202be57bb9
draw: add badrect() function to reject zero, negative size or orverly huge rectangles
...
not checking the rectangle dimensions causes integer overflows
and memory corruption. adding a new badrect() function that checks
for these cases.
2013-06-16 19:01:46 +02:00
Taru Karttunen
a9060cc06b
Import sources from 2011-03-30 iso image - lib
2011-03-30 19:35:09 +03:00
Taru Karttunen
c558a99e0b
Import sources from 2011-03-30 iso image - sys/include
2011-03-30 16:47:56 +03:00