View Single Post
Old 07-24-2019, 12:49 PM   #7
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I refrained from saying it the first time around to see if that was just a quick PoC hack that would later be cleaned up, but: that's *really* not how you should be using FBInk .

You can simply use it as it was meant to (i.e., a library), passing fbpad's open fb fd to fbink_init() at init, and then using fbink_refresh().
If you were worried it would be making a (in this instance) useless mmap, rejoice: it won't (it's only setup on-demand by stuff that actually requires writing the the fb, which _init & _refresh don't). Which means you won't have to use fbink_close() on teardown, either.

Also, honoring credits, licenses, and all that jazz, that'd be a plus, too .

Last edited by NiLuJe; 07-24-2019 at 01:17 PM.
NiLuJe is offline   Reply With Quote