Register Guidelines E-Books Today's Posts Search

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: 3
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 can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.
 
Posts: 352
Karma: 188498
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: 3
Karma: 10
Join Date: Jul 2018
Location: Poland
Device: PocketBook Inkpad 3
That did the trick. Thanks!
Faguss is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pocketbook inkpad Please Help nourmina PocketBook 6 02-15-2019 02:14 PM
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
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:42 PM.


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