View Single Post
Old 04-17-2013, 06:16 PM   #42
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,058
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by melihron View Post
Hmm... they have discussed overwriting system/logo/logo.bmp file. Thanks, I will certainly have a look when you do release
Doh! I've been hurrying and didn't read Billi's message closely enough. I thought she was asking to have the application automatically started after booting up (which is what BookReady() is for). I don't know how to have the current page displayed during boot-up, though. I guess I will have to look at your code to find out.

Edit: Ah! If you look at the pdfviewer source code, you can see that a snapshot is created on an EVT_SNAPSHOT event by ultimately calling PageSnapshot(). I'll have to try that myself. ... It works! That was easy. I just added the following to main_handler() :

Code:
if (type == EVT_SNAPSHOT) {
  // This provides the startup screen while booting.
  DrawPanel((ibitmap*)PANELICON_LOAD, "@snapshot_info", NULL, -1);
  PageSnapshot();
}
Note that you would only call DrawPanel() if you usually call it when drawing to the screen at other times.

Last edited by rkomar; 04-17-2013 at 06:38 PM.
rkomar is offline   Reply With Quote