View Single Post
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