View Single Post
Old 11-17-2018, 04:46 AM   #22
Mrs_Often
Wizard
Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.
 
Mrs_Often's Avatar
 
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
Instructions for patching firmware 4.11.11982

Quote:
Originally Posted by geek1011 View Post
I've released patches v30 with a new "Both page turn sides go next" patch by me



This patch makes both page turn sides (or top/bottom, depending on your selection in Reading Settings) go next in the reader. This patch was made at the request of anigrin and Mrs_Often.



This patch was quite tricky to track down, as there were quite a few ways I could have done this. The first way was to have changed out the dimensions of the calculated rectangles for page turning, but that ended up being too complicated due to the use of QHash's of QRects and pointers upon pointers to functions. I ended up wasting quite a bit of time trying to do it this way. The second way was to just swap out the next and previous page functions, but this had way too many side effects. The third way was to override the tap detection completely, and although this was relatively simple, it would have become a big hassle to update in future versions. The way I ended up doing this is by taking advantage of the right-to-left support (which swaps back and forward taps), and making it set back = forward and forward = forward instead of back = forward and forward = back.






Thank you. I wish there was something I could do in return.


EDIT: I haven’t downloaded V30 yet because I’m not near a computer at the moment, but: will it work for 4.9.11311, or will I have to give in and update to 4.11.11982?

Last edited by Mrs_Often; 11-17-2018 at 04:52 AM.
Mrs_Often is offline   Reply With Quote