You are not logged in.

#1 2009-01-12 17:10:38

CashMan
Member

Widescreen support

Hi !

You want the widescreen support for your homebrew ? It's simple ! I coded a patch for GRRLIB. It verify if 16/9 is selected in the Wii Parameters of user.

INSTALLATION

Add in GRRLIB.h :

Code:

#include <ogc/conf.h>

Add in GRRLIB.c (in your GRRLIB_InitVideo function) :

Code:

void GRRLIB_InitVideo () {

[...]

rmode = VIDEO_GetPreferredMode(NULL);

/* Widescreen patch by CashMan's Productions (http://www.CashMan-Productions.fr.nf) */
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9) 
{
    rmode->viWidth = 678; 
    rmode->viXOrigin = (VI_MAX_WIDTH_NTSC - 678)/2;
}

xfb[0] = (u32 *)MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));
xfb[1] = (u32 *)MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));

[...]

}

Thanks !

Last edited by CashMan (2009-01-27 20:40:31)

Offline

 

#2 2009-01-13 15:55:14

spiffen
Member

Re: Widescreen support

Excellent mod! I'll try that one right away..

Offline

 

Board footer

Powered by FluxBB