By toying with the dragonball registers i am able to get the palm into 16
greyscale mode.
this is no problem.

however when menus or the find dialog get shown, they are still drawn onto
the old video memory.
do i have to copy this across onto my new video memory(bearing in mind it is
originally drawn in 1 bit color), or is there some way of telling palm os
the new address and bit depth so it can draw UI correctly itself this must
work on all recent ROMs.

i know that using the registers directly like this is not 'correct
procedure' but i need my program to run in 4 bit on all EZ machines,
regardless of ROM. - also directly accessing the screen is much faster than
using the builtin functions, and i can use hardware scrolling/page flipping.

please bear in mind that i am new to palm dev.

PLEASE HELP!!

TIA john

src to get into 4 bit col

UInt8 *LPICF = (UInt8 *) 0xFFFFFA20;
UInt8 *LVPW = (UInt8 *) 0xFFFFFA05;
UInt32 *LSSA = (UInt32 *) 0xFFFFFA00;

   char* screen
   char* pOldVideoMemory
...
    screen = MemPtrNew(12800 + 800);
     MemSet(screen, 12800, 0);;
     pOldVideoMemory=*LSSA;
    *LPICF |= 0x02;
    *LVPW <<= 2;
    *LSSA = screen;
....
and  to get out again...

    *LSSA = pOldVideoMemory;
    *LVPW >>= 2;
    *LPICF &= 0xFC;






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to