I am trying to determing if double-density mode is enabled. Before calling
WinScreenGetAttribute, I make sure I'm running OS 4.0 or later. However,
using the emulator (with a 4.2 rom) it crashes when WinScreenGetAttribute is
called with a SysReserved40Trap1 error ("This routine does not exist in this
version of the Palm OS"). What is newbie-me doing wrong?
#define version40 0x04003000
DWord dwRomVersion;
FtrGet(sysFtrCreator, sysFtrNumROMVersion, &dwRomVersion);
if (dwRomVersion >= version40) // dwRomVersion is 0x4103000
{
UInt32 attr;
WinScreenGetAttribute(winScreenDensity, &attr); // Dies here.
if( attr == kDensityDouble )
bDoubleDensityMode = true;
}
Thanks!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/