View Single Post
Old 10-14-2015, 12:41 PM   #9
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
The new version 5 firmware seems to do some kind of trickery when it draws the toolbar panel at the top of the screen. To me, it looks like the panel is drawn at the bottom of the image (like in old firmware versions), and then the image is shifted down and the bottom part is offset to the top of the screen. When you disable the panel, everything is drawn normally.

When you don't want the panel to be shown: 1) SetPanelType(0), 2) draw to the full screen, and 3) don't call DrawPanel().

When you want the panel to be shown: 1) SetPanelType(1), 2) draw to the _top_ (ScreenHeight() - PanelHeight()) part of the screen, 3) call DrawPanel().

These steps are the same for all versions of the firmware. Version 5 will secretly move the bottom panel area to the top of the screen if SetPanelType(1) was last called, even if DrawPanel() was not called.

Last edited by rkomar; 10-14-2015 at 12:43 PM.
rkomar is offline   Reply With Quote