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 |
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: |