Page 1 of 1

Example Wii programs have black borders on sides

Posted: Sun Sep 11, 2011 6:11 am
by AberrantWolf
I moved over to developing on my actual Wii (since Dolphin was causing me problems) and I noticed that there are small borders on the sides of the example programs supplied by devkitPro for the Wii. Neither my Wii menu nor the Homebrew Channel have these black borders.

Any ideas? Is this a known limitation or effect of setting things up a certain way? :(

Re: Example Wii programs have black borders on sides

Posted: Tue Sep 13, 2011 4:47 am
by AberrantWolf
Found the solution.

I checked the source code to Snex9x GX, and they do something like this:

Code: Select all

if( CONF_GetAspectRatio() == CONF_ASPECT_16_9 ) {
	rmode->viWidth = 678;
} else {
	rmode->viWidth = 672;
}

if(true) { //vmode is 60hz
	rmode->viXOrigin = (VI_MAX_WIDTH_NTSC - rmode->viWidth)/2;
	rmode->viYOrigin = (VI_MAX_HEIGHT_NTSC - rmode->viHeight)/2;
}
This code, added after rmode = VIDEO_GetPreferredMode(NULL) appears to fill in the rest of the frame at least as well as the Wii's main menu fills it in. :P