From eb0f87fd059c7a7b749ba7874e5c1812e55cceba Mon Sep 17 00:00:00 2001 From: dborth Date: Wed, 17 Nov 2010 07:27:36 +0000 Subject: [PATCH] --- SDL/src/video/wii/SDL_wiivideo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SDL/src/video/wii/SDL_wiivideo.c b/SDL/src/video/wii/SDL_wiivideo.c index f85212a..b53334f 100644 --- a/SDL/src/video/wii/SDL_wiivideo.c +++ b/SDL/src/video/wii/SDL_wiivideo.c @@ -798,8 +798,12 @@ WII_InitVideoSystem() VIDEO_Configure(vmode); // Allocate the video buffers - xfb[0] = (u32 *) MEM_K0_TO_K1 (SYS_AllocateFramebuffer (vmode)); - xfb[1] = (u32 *) MEM_K0_TO_K1 (SYS_AllocateFramebuffer (vmode)); + xfb[0] = (u32 *) SYS_AllocateFramebuffer (vmode); + xfb[1] = (u32 *) SYS_AllocateFramebuffer (vmode); + DCInvalidateRange(xfb[0], VIDEO_GetFrameBufferSize(vmode)); + DCInvalidateRange(xfb[1], VIDEO_GetFrameBufferSize(vmode)); + xfb[0] = (u32 *) MEM_K0_TO_K1 (xfb[0]); + xfb[1] = (u32 *) MEM_K0_TO_K1 (xfb[1]); VIDEO_ClearFrameBuffer(vmode, xfb[0], COLOR_BLACK); VIDEO_ClearFrameBuffer(vmode, xfb[1], COLOR_BLACK);