VIDEO_GetPreferredMode...again June 10, 2012 06:08PM | Registered: 13 years ago Posts: 99 |
GXRModeObj* WiiManager::GetBestVideoMode() { GXRModeObj* vmode = VIDEO_GetPreferredMode(NULL); // get default video mode bool pal = false; if (vmode == &TVPal528IntDf) // this may now be stupid, since I've just found something that will compile for the moment! { pal = true; vmode = &TVPal576IntDfScale; //&TVPal574IntDfScale; ....574 removed fro libs, Ive just used the new 576 } if (CONF_GetAspectRatio() == CONF_ASPECT_16_9) { vmode->viWidth = 678; // probably top limit for stretching the display onto your TV } //else //{ // vmode->viWidth = 672; // not tested...this may work ok //} if (pal) { vmode->viXOrigin = (VI_MAX_WIDTH_PAL - vmode->viWidth) / 2; vmode->viYOrigin = (VI_MAX_HEIGHT_PAL - vmode->viHeight) / 2; } else { vmode->viXOrigin = (VI_MAX_WIDTH_NTSC - vmode->viWidth) / 2; vmode->viYOrigin = (VI_MAX_HEIGHT_NTSC - vmode->viHeight) / 2; } s8 hoffset = 0; if (CONF_GetDisplayOffsetH(&hoffset) == 0) vmode->viXOrigin += hoffset; return vmode; }
Re: VIDEO_GetPreferredMode...again June 10, 2012 08:04PM | Registered: 13 years ago Posts: 363 |
Re: VIDEO_GetPreferredMode...again June 10, 2012 10:19PM | Registered: 13 years ago Posts: 99 |
Re: VIDEO_GetPreferredMode...again June 10, 2012 11:42PM | Moderator Registered: 15 years ago Posts: 686 |
Re: VIDEO_GetPreferredMode...again June 25, 2012 07:59PM | Registered: 13 years ago Posts: 99 |
GXRModeObj* WiiManager::GetBestVideoMode() { GXRModeObj* vmode = VIDEO_GetPreferredMode(NULL); // get default video mode if (CONF_GetAspectRatio() == CONF_ASPECT_16_9) { vmode->viWidth = 678; vmode->viXOrigin = (VI_MAX_WIDTH_NTSC - 678)/2; } return vmode; }
Re: VIDEO_GetPreferredMode...again June 25, 2012 08:21PM | Registered: 13 years ago Posts: 363 |
Re: VIDEO_GetPreferredMode...again June 25, 2012 09:15PM | Registered: 13 years ago Posts: 99 |