Example Wii programs have black borders on sides

Post Reply
AberrantWolf
Posts: 4
Joined: Wed Sep 07, 2011 10:04 pm

Example Wii programs have black borders on sides

Post by AberrantWolf » Sun Sep 11, 2011 6:11 am

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? :(

AberrantWolf
Posts: 4
Joined: Wed Sep 07, 2011 10:04 pm

Re: Example Wii programs have black borders on sides

Post by AberrantWolf » Tue Sep 13, 2011 4:47 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests