Commit Graph

2694 Commits

Author SHA1 Message Date
nick black
adcabfae52
rust: assimilate #883 2020-08-12 10:46:59 -04:00
nick black
9704f5cbe7
v1.6.12 2020-08-12 09:37:59 -04:00
nick black
12a136cf6e
ncplane_puttext: remove meaningless assignment 2020-08-12 09:19:14 -04:00
nick black
1ada631e94 purge rust/notcurses 2020-08-12 08:42:22 -04:00
nick black
ce5484c13c
notcurses_lex_scalemode(): return 0 on success 2020-08-12 07:10:10 -04:00
nick black
733da37bb5
zoo: render the last bit of text 2020-08-12 06:37:35 -04:00
nick black
7c373ecc3a
zoo demo: correct delaytime for spooling 2020-08-12 05:42:30 -04:00
nick black
8aa0986f7d
zoo: support widget use for the duration #835 2020-08-12 03:27:31 -04:00
nick black
7d1e4fae54
plug memory leak in PoC direct 2020-08-12 03:03:10 -04:00
nick black
d5eca34cd5
plug memory leak in PoC selector 2020-08-12 03:00:19 -04:00
Nick Black
c3508d524b
ncplane_puttext() work for longer lines (#880)
* The zoo demo made manifest that we had some serious problems handling sequences of longer lines in ncplane_puttext(). This remedies most of the problems, though it's not yet perfect. #871
* Guard notcurses* for NULL in log*() #878 #879
* Fix memory leak in ncdirect_dump_plane()
2020-08-12 02:43:52 -04:00
nick black
4de70913bf logging: only fallback to stderr on NULL nc for error/warn 2020-08-12 01:53:13 -04:00
nick black
05689b4828 logging: guard for NULL nc argument #878 2020-08-12 01:49:31 -04:00
nick black
3d96b5249b ncdirect_dump_plane(): plug memory leak of egc 2020-08-12 01:48:52 -04:00
nick black
3895eb911a
not anymore, we're not 2020-08-11 20:47:17 -04:00
nick black
45e5d95774
ugh 2020-08-11 19:45:00 -04:00
Nick Black
0c935d0aea
Merge pull request #875 from dankamongmen/joseluis-patch-1
fix return types
2020-08-11 16:46:51 -04:00
Nick Black
e7ad2829e9
Merge branch 'master' into joseluis-patch-1 2020-08-11 16:46:18 -04:00
joseLuís
efdb4ba4f1 pass rustfmt & fix typos 2020-08-11 18:31:18 +02:00
joseLuís
03f2e7c871 rust: implement palette functions 2020-08-11 18:29:49 +02:00
joseLuís
7070e532d6 fix typos 2020-08-11 17:04:09 +02:00
joseLuís
7abda11404 add comments for ncpixel functions 2020-08-11 16:59:39 +02:00
joseLuís
dbec390fac rust: improve some channel functions
Functions `channel_set()`, `channels_set_fg()`, `channels_set_bg()`
don't return an error anymore. Instead of failing when the rgb value
has any of the last 8 bits set, now it just ignores those bits.
2020-08-11 16:41:18 +02:00
joseLuís
6424e453aa rust: add test modules skeletons 2020-08-11 14:31:57 +02:00
joseLuís
ec92d13306 rust: improve info headers 2020-08-11 14:25:40 +02:00
joseLuís
da34965fcd rust: implement pixel functions 2020-08-11 12:27:40 +02:00
José Luis Cruz
7bd29c9c17
fix return types
I bet those two return types shoud be unsigned
2020-08-11 11:56:25 +02:00
joseLuís
7790913d2f fix typos & improve comments 2020-08-11 11:38:30 +02:00
joseLuís
8b01f26730 rust: improve info headers for maximum consistency
and implement 1 palette fuction
2020-08-11 11:31:29 +02:00
joseLuís
70adc5645b rust: reimplement keys fns & consts 2020-08-11 10:50:51 +02:00
joseLuís
181a5a20ff Merge branch 'rust-no_std' of github.com:dankamongmen/notcurses into rust-no_std 2020-08-11 00:01:21 +02:00
joseLuís
a29fa0395d add handy cargo aliases 2020-08-10 23:56:57 +02:00
joseLuís
ba660aa69b make rust bindings no_std compatible, fixes #872 2020-08-10 23:56:09 +02:00
joseLuís
0362a11f63 make it compatible with no_std environment 2020-08-10 23:48:56 +02:00
joseLuís
799407f98c prepare modules for pending work 2020-08-10 23:44:40 +02:00
joseLuís
2fe9e4c22b make it compatible with no_std environment 2020-08-10 10:57:11 +02:00
nick black
8759572632
zoo demo: smooth out delays in mselect input #835 2020-08-10 01:33:49 -04:00
nick black
e5d17fd20c
zoo demo: smooth out delays in selector input #835 2020-08-10 01:30:27 -04:00
nick black
e0bb0607a0
scan-build false positive workarounds #624
Eliminate scan-build false positive about garbage value
in conditional by replacing a malloc+manual init with a
calloc() #624. The other error it has been reporting goes
away with -maxloop=1000, so I think we're fine now.

Also, simplify paint() by dumping the lfdimx parameter, which
is always the same thing as dstlenx (we originally wrote this
with different resizing semantics). Update callers.
2020-08-10 01:07:10 -04:00
nick black
5b432c6d94
tighten_reel: don't call trim_reel_overhang() with NULL 2020-08-10 00:16:32 -04:00
nick black
82fe736d15
qrcode: fix ncvisual memory leak 2020-08-10 00:04:08 -04:00
nick black
5d08641751
zoo: don't use initialized variable on error path 2020-08-09 23:13:54 -04:00
nick black
ac4a53bf3b
trim_reel_overhang: don't rely on assert()s 2020-08-09 23:10:07 -04:00
nick black
4a8d56cbfc
zoo: propagate return codes out of selector demos #835 2020-08-09 22:38:51 -04:00
nick black
d6e2ae5262
zoo demo: propagate out return code #835 2020-08-09 22:34:59 -04:00
nick black
02c29f39b6
reel demo: adapt to new tablet callback #818 2020-08-09 22:25:03 -04:00
nick black
f0f3b9f45f
ThreeCycleDownNoTabletBorders unit test #818 2020-08-09 22:14:56 -04:00
nick black
1f296256e3
ncreel_trim: work on borderless reels #818 2020-08-09 21:46:49 -04:00
nick black
f586e7f47d
ncreel_draw_tablet: properly resize borderless border plane #818 2020-08-09 21:24:12 -04:00
nick black
9fd7ba44dc
ncreel_redraw: handle 0-line data planes via genocide 2020-08-09 18:04:55 -04:00