fix gamma fade code to make Ferazel's Wand launch

This commit is contained in:
asvitkine 2012-03-27 03:43:28 +00:00
parent 81ab1a3f6c
commit 2676e1bd13

View File

@ -213,8 +213,6 @@ static bool allocate_gamma_table(VidLocals *csSave, uint32 size)
static int16 set_gamma(VidLocals *csSave, uint32 gamma) static int16 set_gamma(VidLocals *csSave, uint32 gamma)
{ {
return paramErr;
if (gamma == 0) { // Build linear ramp, 256 entries if (gamma == 0) { // Build linear ramp, 256 entries
// Allocate new table, if necessary // Allocate new table, if necessary
@ -699,7 +697,7 @@ static int16 VideoStatus(uint32 pb, VidLocals *csSave)
case cscGetGamma: // GetGamma case cscGetGamma: // GetGamma
D(bug("GetGamma\n")); D(bug("GetGamma\n"));
WriteMacInt32(param, (uint32)csSave->gammaTable); WriteMacInt32(param, (uint32)csSave->gammaTable);
return statusErr; return noErr;
case cscGetDefaultMode: // GetDefaultMode case cscGetDefaultMode: // GetDefaultMode
D(bug("GetDefaultMode\n")); D(bug("GetDefaultMode\n"));