Logged in as Guest   Sun, Oct. 21st, 3:07 AM.      
 
 
Web hazelware.luggle.com
 

Direct Screen Access On Palm
So, I have been doing a little bit of research into direct screen access on the Palm. From everything that I've seen, it appears that there are three ways that direct screen access can be accomplished:
1. WinGetDisplayWindow()->displayAddrV20;
2. WinScreenLock(...);
3. BmpGetBits(WinGetBitmap(WinGetDisplayWindow()));
The first method is obsoleted, and even though you can get around it by turning off some of the compiler directives, it fails on most OS 5 devices. Because of that, I won't talk too much more about it here.
The second method is basically a double-buffering method. When you call WinScreenLock(), you get a pointer to the offscreen buffer, and all system drawing is performed on the offscreen until you call WinScreenUnlock(). Unfortunately, this method isn't supported on all devices. Strangely enough, it isn't even supported on some newer devices like the original Tungsten T.
The third method is the 'safest' method and should work on all devices. However, there has been some discussion about whether or not this actually returns a pointer to VRAM on all devices or if it is 'emulated' on some devices. I can't comment on that since I don't have the source for any vendor implementations, however. The other downside to this is that if you don't perform your screen refresh quickly enough, the user will see flicker, whereas with WinScreenLock, it is guaranteed against flicker. However, if device independance is your goal, then you will definitely want to use the third method.
Submitted by bosshogg on Wednesday the 31st 1970f December 1969, at 04:00

 
Recent Entries:
I'm BACK!!!!!!
Code Monkey
Cool 3D Code Snippet From My Former Life
YouTube: The Revival of the Internet Time Killer
WhereMate Released
Palmasaurus Released As Freeware
VM-Plus Beta
Handspring Undocumented APIs
Posting Malaise
PhoneShield Released!!!

Archive:
October - 2007
August - 2007
July - 2007
June - 2007
May - 2007
April - 2007
December - 2006
November - 2006
September - 2006
August - 2006
July - 2006
March - 2006
February - 2006
January - 2006
December - 2005
November - 2005
October - 2005
September - 2005
August - 2005
July - 2005
June - 2005
May - 2005
April - 2005
February - 2005
January - 2005
December - 2004
November - 2004
October - 2004
September - 2004
August - 2004
July - 2004
June - 2004
May - 2004
April - 2004
March - 2004