mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
fix gamma code so that fades in Ferazel's Wand actually work
This commit is contained in:
parent
2676e1bd13
commit
9325e35636
@ -245,7 +245,7 @@ static int16 set_gamma(VidLocals *csSave, uint32 gamma)
|
||||
int data_width = ReadMacInt16(gamma + gDataWidth);
|
||||
if (data_width > 8)
|
||||
return paramErr;
|
||||
int data_cnt = ReadMacInt16(gamma + gDataWidth);
|
||||
int data_cnt = ReadMacInt16(gamma + gDataCnt);
|
||||
if (data_cnt != (1 << data_width))
|
||||
return paramErr;
|
||||
|
||||
@ -366,7 +366,7 @@ static int16 VideoControl(uint32 pb, VidLocals *csSave)
|
||||
case cscSetGamma: { // SetGamma
|
||||
uint32 user_table = ReadMacInt32(param + csGTable);
|
||||
D(bug("SetGamma %08x\n", user_table));
|
||||
return set_gamma(csSave, ReadMacInt32(user_table));
|
||||
return set_gamma(csSave, user_table);
|
||||
}
|
||||
|
||||
case cscGrayPage: { // GrayPage
|
||||
|
Loading…
Reference in New Issue
Block a user