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

Comparing BasiliskII/src/video.cpp (file contents):
Revision 1.4 by cebix, 2000-07-22T16:07:19Z vs.
Revision 1.7 by cebix, 2001-02-02T20:52:57Z

# Line 1 | Line 1
1   /*
2   *  video.cpp - Video/graphics emulation
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 Christian Bauer
5   *  Portions (C) 1997-1999 Marc Hellwig
6   *
7   *  This program is free software; you can redistribute it and/or modify
# Line 244 | Line 244 | int16 VideoDriverStatus(uint32 pb, uint3
244  
245                  case cscGetModeTiming:          // Get video timing for mode
246                          D(bug(" GetModeTiming mode %08lx\n", ReadMacInt32(param + csTimingMode)));
247 <                        WriteMacInt32(param + csTimingFormat, FOURCC('d','e','c','l'));
247 >                        WriteMacInt32(param + csTimingFormat, FOURCC('d', 'e', 'c', 'l'));
248                          WriteMacInt32(param + csTimingData, 220);               // 21" Multiscan
249                          WriteMacInt32(param + csTimingFlags, 0x0f);             // Mode valid, safe, default and shown in Monitors panel
250                          return noErr;
251  
252                  case cscGetModeBaseAddress:     // Get frame buffer base address
253                          D(bug(" GetModeBaseAddress\n"));
254 <                        WriteMacInt32(param + csBaseAddr, VidLocal.desc->mac_frame_base);
254 >                        WriteMacInt32(param + csBaseAddr, VidLocal.desc->mac_frame_base);       // Base address of video RAM for the current DisplayModeID and relative bit depth
255 >                        return noErr;
256 >
257 >                case cscGetMode:                // REQUIRED for MacsBug
258 >                        D(bug(" GetMode\n"));
259 >                        WriteMacInt16(param + csPageMode, 0x80);
260 >                        WriteMacInt32(param + csPageData, 0x80);        // Unused
261 >                        WriteMacInt16(param + csPagePage, 0);   // Current display page
262 >                        WriteMacInt32(param + csPageBaseAddr, VidLocal.desc->mac_frame_base);
263                          return noErr;
264  
265                  default:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines