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.13 by gbeauche, 2005-01-30T21:48:19Z vs.
Revision 1.14 by gbeauche, 2005-03-27T13:44:45Z

# Line 517 | Line 517 | static uint32 max_depth(uint32 id)
517          return max;
518   }
519  
520 + // Get X/Y size of specified resolution
521 + static void get_size_of_resolution(int id, uint32 &x, uint32 &y)
522 + {
523 +        VideoInfo *p = VModes;
524 +        while (p->viType != DIS_INVALID) {
525 +                if (p->viAppleID == id) {
526 +                        x = p->viXsize;
527 +                        y = p->viYsize;
528 +                        return;
529 +                }
530 +                p++;
531 +        }
532 +        x = y = 0;
533 + }
534 +
535   static int16 VideoStatus(uint32 pb, VidLocals *csSave)
536   {
537          int16 code = ReadMacInt16(pb + csCode);
# Line 708 | Line 723 | static int16 VideoStatus(uint32 pb, VidL
723                                          WriteMacInt32(param + csVerticalLines, 1200);
724                                          WriteMacInt32(param + csRefreshRate, 75<<16);
725                                          break;
726 +                                case APPLE_CUSTOM: {
727 +                                        uint32 x, y;
728 +                                        get_size_of_resolution(work_id, x, y);
729 +                                        WriteMacInt32(param + csHorizontalPixels, x);
730 +                                        WriteMacInt32(param + csVerticalLines, y);
731 +                                        WriteMacInt32(param + csRefreshRate, 75<<16);
732 +                                        break;
733 +                                }
734                          }
735                          return noErr;
736                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines