UInt32 bS; //Global
//In StartApp function somewhere...
UInt32 nD; //Local
WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL,&nD,NULL);
switch(nD) {
case 0x0B:
bS=12800;
default:
bS=25600;
}
Is it right to do so in the code or should it rather be
//In StartApp function somewhere...
UInt32 nD =
WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL,&nD,NULL);
switch(nD) {
case 0x0B:
bS=12800;
default:
bS=25600;
}
Because I don't really understand the switch(nD) command. If I do not assign
the nD Variable anywhere, I cannot switch. Is there any sense doing:
UInt32 nD =
WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL,&nD,NULL);
I don't know the WinScreenMode function. Can anyone help me?
Thx
Charly
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/