mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-12-22 18:39:18 +00:00
Fix video for GameCube
This commit is contained in:
parent
3b5924db94
commit
396276c465
1 changed files with 11 additions and 7 deletions
|
@ -66,7 +66,8 @@ int GRRLIB_Init (void) {
|
|||
VIDEO_SetBlack(true); // Disable video output during initialisation
|
||||
|
||||
// Grab a pointer to the video mode attributes
|
||||
if ( !(rmode = VIDEO_GetPreferredMode(NULL)) ) {
|
||||
rmode = VIDEO_GetPreferredMode(NULL);
|
||||
if (rmode == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -76,21 +77,24 @@ int GRRLIB_Init (void) {
|
|||
//rmode = &TVPal574IntDfScale;
|
||||
rmode = &TVPal528IntDf; // BC ...this is still wrong, but "less bad" for now
|
||||
break;
|
||||
default:
|
||||
#ifdef HW_DOL
|
||||
if(VIDEO_HaveComponentCable()) {
|
||||
rmode = &TVNtsc480Prog;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
#if defined(HW_RVL)
|
||||
// 16:9 and 4:3 Screen Adjustment for Wii
|
||||
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9) {
|
||||
rmode->viWidth = 678;
|
||||
rmode->viXOrigin = (VI_MAX_WIDTH_NTSC - 678) / 2; // This probably needs to consider PAL
|
||||
} else { // 4:3
|
||||
rmode->viWidth = 672;
|
||||
rmode->viXOrigin = (VI_MAX_WIDTH_NTSC - 672) / 2;
|
||||
}
|
||||
#else
|
||||
// GameCube
|
||||
rmode->viWidth = 672;
|
||||
rmode->viXOrigin = (VI_MAX_WIDTH_NTSC - 672) / 2;
|
||||
// This probably needs to consider PAL
|
||||
rmode->viXOrigin = (VI_MAX_WIDTH_NTSC - rmode->viWidth) / 2;
|
||||
#endif
|
||||
|
||||
#if defined(HW_RVL)
|
||||
|
|
Loading…
Reference in a new issue