View Single Post
Old 08-14-2019, 11:55 AM   #15
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
@Mavireck: Speaking of other devices, I'd possibly get rid of the user-configurable screen dimensions (or at least make that a dev/test option), and instead default to figuring them out automagically (say, via fbink_get_state() ;p) .

Code:
state = ffi.new("FBInkState *")
FBInk.fbink_get_state(fbink_cfg, state)
print("Screen is {}x{}".format(state.screen_width, state.screen_height))

Last edited by NiLuJe; 08-14-2019 at 11:58 AM.
NiLuJe is offline   Reply With Quote