Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2018, 06:31 AM   #1
Faguss
Junior Member
Faguss began at the beginning.
 
Faguss's Avatar
 
Posts: 2
Karma: 10
Join Date: Jul 2018
Location: Poland
Device: PocketBook Inkpad 3
InkPad 3 display moving down

How do you render properly on an InkPad 3? After EVT_SHOW when I call FullUpdate() or PartialUpdate() everything shifts downward. Photos. Source. Download

Last edited by Faguss; 07-29-2018 at 01:05 PM.
Faguss is offline   Reply With Quote
Old 07-30-2018, 06:34 AM   #2
brucelee
Addict
brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.
 
Posts: 346
Karma: 142294
Join Date: Jan 2015
Location: Romania
Device: Kobo Aura One
I didn't see the code as pastebin.com is not loading for some reason.
The offset seems to be the height of the top panel containing the hour, battery, light status... You get the idea.
Try calling SetPanelType(0); to make sure the panel is disabled.

Edit:

In CR3 I'm doing this on EVT_INIT:
PHP Code:
    case EVT_INIT:
        
SetPanelType(1);
        
pbCrFontSize round(PanelHeight()*0.32);
        
pbCrFontAA OpenFont(DEFAULTFONTpbCrFontSize1);
        
pbCrFont OpenFont(DEFAULTFONTpbCrFontSize0);
        
SetPanelType(0);
        
need_save_cover true
I'm initially enabling the panel so PanelHeight() will return the correct value and then I'm disabling it so I can use the entire screen to draw.

Last edited by brucelee; 07-30-2018 at 06:42 AM.
brucelee is offline   Reply With Quote
Old 07-31-2018, 03:10 PM   #3
Faguss
Junior Member
Faguss began at the beginning.
 
Faguss's Avatar
 
Posts: 2
Karma: 10
Join Date: Jul 2018
Location: Poland
Device: PocketBook Inkpad 3
That did the trick. Thanks!
Faguss is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ended Pocketbook Inkpad 2 mobama Flea Market 5 05-07-2018 12:53 PM
Which plugin for PB InkPad 3? Mivo Devices 2 04-19-2018 06:21 PM
Inkpad 3 to come redchili PocketBook 41 04-17-2018 10:21 PM
pocketbook inkpad Please Help nourmina PocketBook 0 01-15-2018 12:52 PM
How to reset the Inkpad? Nate the great PocketBook 5 11-25-2015 04:44 AM


All times are GMT -4. The time now is 05:29 PM.


MobileRead.com is a privately owned, operated and funded community.