You are not logged in.
Will GRRLIB suport widescreen resolution?
Offline
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
I though it was a limitation of the libogc... but i didn't follow the updates of the libogc recently...
Offline
The first step for GRRLIB would be to use variables instead of the hard coded 640 and 480.
Offline
I will add the widescreen support in a future version of Wii Quizz. I coded a patch for GRRLIB :
Add in GRRLIB.h :
#include <ogc/conf.h>
Add in GRRLIB.c :
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)); [...] }
Last edited by CashMan (2009-01-12 17:04:48)
Offline
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