Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2010, 12:48 AM   #16
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I think your compile error can be solved by modifying desktop.mk. Make sure it contains the following lines:

Code:
CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG $(shell pkg-config --cflags gtk+-2.0)
LDFLAGS = $(shell pkg-config --libs gthread-2.0 x11 gtk+-2.0) -leripc -lerdm
ericshliao is offline   Reply With Quote
Old 03-17-2010, 12:51 AM   #17
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
This is my code:

Code:
void FBReader::refreshWindow() {

	ZLApplication::refreshWindow();
	((RecentBooksPopupData&)*myRecentBooksPopupData).updateId();
	
	//added for iLiad
	if(einkUpdate){
		XSync(display, 1);
		sleep(0);		
		dmDisplay(dmCmdPriorNormal, dmQFull);
	}
}
ericshliao is offline   Reply With Quote
Old 03-17-2010, 02:04 AM   #18
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Setting display in ZLGtkApplicationWindow::ZLGtkApplicationWindow(ZLA pplication *application)
is another working way if setting it in main() is not desired. This way, modifying desktop.mk is not necessary.
ericshliao is offline   Reply With Quote
Old 04-23-2010, 03:28 AM   #19
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I found that sometimes XSync() will process the preloaded next-page too early. So, instead using XSync(), I think using XFlush() is better in the case of iLiad.
ericshliao is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Personal Code Page after power on? T.W.G Sony Reader Dev Corner 3 07-24-2009 07:50 PM
PRS-505: Page flip keys in landscape mode? Juggle4Evr Sony Reader 4 01-19-2009 06:51 PM
Change code page mota Bookeen 7 11-10-2007 05:51 AM
PRS-500 Joystick page flip and history hack diabloNL Sony Reader Dev Corner 12 08-10-2007 02:32 PM
Can Plucker flip a full page? Muximori Reading and Management 4 12-26-2005 10:22 PM


All times are GMT -4. The time now is 05:28 AM.


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