View Single Post
Old 07-17-2009, 12:38 PM   #118
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by pwarren View Post
So I thought that instead of trying to find every instance of things that needed porting there, I'd try and use a mixed approach, use xepdmgr for the menu button dialogues, and the erdm style for page flipping.

To my questions then

Is that pretty much what the EPDCancel() function is for?
and
How do I use that in FBReader? (or other code for that matter)
Well, really it's EpdRefreshAuto() the one that enables/disables the autorefresh.

See post 98 in this thread:

https://www.mobileread.com/forums/sho...5&postcount=98

That code sample is what you are looking for, if I'm not mistaken: when you want to refresh the main viewing area of FBReader, disable xepdmgr (with "EpdRefreshAuto(Epd,0)"), then do the update and refresh manually (using either "EpdRefreshFull(Epd)" or the functions in erdm -- I think that here there should be no difference in elapsed time between these functions) and then re-enable the auto-refresh (with "EpdCancel(Epd),EpdRefreshAuto(Epd,1)".
Antartica is offline   Reply With Quote