(GX) Rename to official SDK functions through macros

This commit is contained in:
twinaphex 2015-11-15 20:22:19 +01:00
parent 2bd8c2ae0b
commit b4432f7a0c
1 changed files with 7 additions and 7 deletions

View File

@ -254,17 +254,17 @@ static void frontend_gx_init(void *data)
#endif #endif
#if defined(DEBUG) && defined(IS_SALAMANDER) #if defined(DEBUG) && defined(IS_SALAMANDER)
VIDEO_Init(); VIInit();
GXRModeObj *rmode = VIDEO_GetPreferredMode(NULL); GXRModeObj *rmode = VIDEO_GetPreferredMode(NULL);
void *xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode)); void *xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));
console_init(xfb, 20, 20, rmode->fbWidth, console_init(xfb, 20, 20, rmode->fbWidth,
rmode->xfbHeight, rmode->fbWidth * VI_DISPLAY_PIX_SZ); rmode->xfbHeight, rmode->fbWidth * VI_DISPLAY_PIX_SZ);
VIDEO_Configure(rmode); VIConfigure(rmode);
VIDEO_SetNextFramebuffer(xfb); VISetNextFramebuffer(xfb);
VIDEO_SetBlack(FALSE); VISetBlack(FALSE);
VIDEO_Flush(); VIFlush();
VIDEO_WaitVSync(); VIWaitForRetrace();
VIDEO_WaitVSync(); VIWaitForRetrace();
#endif #endif
#ifndef DEBUG #ifndef DEBUG