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.5 by jlachmann, 2000-08-20T14:08:40Z

# 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, 'decl');
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