You are not logged in.

#1 2008-11-24 20:24:53

Crayon
Bad Mother Fucker

Widescreen support

Will GRRLIB suport widescreen resolution?

Offline

 

#2 2008-12-13 21:33:43

woogal
Member

Re: Widescreen support

Modifying the guOrtho line in GRRLIB_Start to guOrtho(perspective,0,479,-40,679,0,300); should give you widescreen (I think - can't remember if I also changed anything else anywhere).

Offline

 

#3 2008-12-14 20:19:50

_CONEJO
Member

Re: Widescreen support

I though it was a limitation of the libogc... but i didn't follow the updates of the libogc recently...

Offline

 

#4 2008-12-15 17:18:42

Crayon
Bad Mother Fucker

Re: Widescreen support

The first step for GRRLIB would be to use variables instead of the hard coded 640 and 480.

Offline

 

#5 2009-01-12 17:00:20

CashMan
Member

Re: Widescreen support

I will add the widescreen support in a future version of Wii Quizz. I coded a patch for GRRLIB :

Add in GRRLIB.h :

Code:

#include <ogc/conf.h>

Add in GRRLIB.c :

Code:

void GRRLIB_InitVideo () {
f32 yscale;
u32 xfbHeight;
Mtx44 orthographic;

VIDEO_Init();
rmode = VIDEO_GetPreferredMode(NULL);

/* Widescreen patch by CashMan's Productions (http://www.CashMan-Productions.c.la) */
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));

[...]

}

wink

Last edited by CashMan (2009-01-12 17:04:48)

Offline

 

#6 2009-01-15 11:14:56

spiffen
Member

Re: Widescreen support

Variables:
f32 yscale;
u32 xfbHeight;
Mtx44 orthographic;
.. are never used

Why do you call the VIDEO_Init() function? I guess most developers already calls it before calling GRRLIB_InitVideo()

What is the difference when calling VIDEO_Configure (rmode) and not? Noticed you are not doing it anymore.

Offline

 

Board footer

Powered by FluxBB