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); |
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 |
|
} |