This commit is contained in:
dborth 2010-11-17 07:27:53 +00:00
parent ffa827d43c
commit df2392c736

View File

@ -547,8 +547,12 @@ InitGCVideo ()
VIDEO_Init(); VIDEO_Init();
// Allocate the video buffers // Allocate the video buffers
xfb[0] = (u32 *) MEM_K0_TO_K1 (memalign(32, 640*574*2)); xfb[0] = (u32 *) memalign(32, 640*574*2);
xfb[1] = (u32 *) MEM_K0_TO_K1 (memalign(32, 640*574*2)); xfb[1] = (u32 *) memalign(32, 640*574*2);
DCInvalidateRange(xfb[0], 640*574*2);
DCInvalidateRange(xfb[1], 640*574*2);
xfb[0] = (u32 *) MEM_K0_TO_K1 (xfb[0]);
xfb[1] = (u32 *) MEM_K0_TO_K1 (xfb[1]);
GXRModeObj *rmode = FindVideoMode(); GXRModeObj *rmode = FindVideoMode();
SetupVideoMode(rmode); SetupVideoMode(rmode);