245 |
|
int data_width = ReadMacInt16(gamma + gDataWidth); |
246 |
|
if (data_width > 8) |
247 |
|
return paramErr; |
248 |
< |
int data_cnt = ReadMacInt16(gamma + gDataWidth); |
248 |
> |
int data_cnt = ReadMacInt16(gamma + gDataCnt); |
249 |
|
if (data_cnt != (1 << data_width)) |
250 |
|
return paramErr; |
251 |
|
|
366 |
|
case cscSetGamma: { // SetGamma |
367 |
|
uint32 user_table = ReadMacInt32(param + csGTable); |
368 |
|
D(bug("SetGamma %08x\n", user_table)); |
369 |
< |
return set_gamma(csSave, ReadMacInt32(user_table)); |
369 |
> |
return set_gamma(csSave, user_table); |
370 |
|
} |
371 |
|
|
372 |
|
case cscGrayPage: { // GrayPage |