ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/video.cpp
(Generate patch)

Comparing SheepShaver/src/video.cpp (file contents):
Revision 1.17 by asvitkine, 2012-03-27T03:43:28Z vs.
Revision 1.18 by asvitkine, 2012-03-28T03:30:49Z

# Line 245 | Line 245 | static int16 set_gamma(VidLocals *csSave
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  
# Line 366 | Line 366 | static int16 VideoControl(uint32 pb, Vid
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines