The emulator crashes with a "chunk under-locked" error when running this
code on a en_3.0 rom:
if (!(error = ScrDisplayMode(scrDisplayModeGetSupportedDepths, NULL, NULL,
&newDepth, NULL))){
if (!(error = ScrDisplayMode(scrDisplayModeGet, NULL, NULL, &oldDepth,
NULL))){
if ((oldDepth < 2) && ((newDepth & 2) == 2)) { // If screen is capable of
2 bit color, then set it to that!
newDepth = 2;
ScrDisplayMode(scrDisplayModeSet, NULL, NULL,&newDepth, NULL);
FrmCustomAlert(AINGDebugAlert,"2 Bit!","","");
}
else {
FrmCustomAlert(AINGDebugAlert,"No Change","","");
}
}
}
Any ideas? I'm using the 3.0 SDK. The code runs fine on os 3.1 and above.
--
Regards,
Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/