GRRLib Poblem January 24, 2010 01:06PM | Registered: 14 years ago Posts: 19 |
Re: GRRLib Poblem January 24, 2010 03:22PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: GRRLib Poblem January 24, 2010 03:59PM | Registered: 14 years ago Posts: 19 |
Quote
Arikado
Basically, you can't declare rmode in your code because GRRLIB already uses it. So just call it rmode2 instead or something. Or better yet, use the already declared rmode.
Quote
> "make"
main.c
c:/devkitPro/projects/test/source/main.c:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:/devkitPro/projects/test/source/main.c:62: error: expected declaration specifiers or '...' before 'GXrmode2Obj'
c:/devkitPro/projects/test/source/main.c: In function 'drawdot':
c:/devkitPro/projects/test/source/main.c:77: error: 'rmode2' undeclared (first use in this function)
c:/devkitPro/projects/test/source/main.c:77: error: (Each undeclared identifier is reported only once
c:/devkitPro/projects/test/source/main.c:77: error: for each function it appears in.)
c:/devkitPro/projects/test/source/main.c: In function 'main':
c:/devkitPro/projects/test/source/main.c:198: error: 'rmode2' undeclared (first use in this function)
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:01
Re: GRRLib Poblem January 24, 2010 04:21PM | Registered: 15 years ago Posts: 175 |
Re: GRRLib Poblem January 24, 2010 04:58PM | Registered: 14 years ago Posts: 19 |
Re: GRRLib Poblem January 24, 2010 05:09PM | Registered: 15 years ago Posts: 175 |
Re: GRRLib Poblem January 24, 2010 05:12PM | Registered: 14 years ago Posts: 19 |
Re: GRRLib Poblem January 24, 2010 06:10PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: GRRLib Poblem January 27, 2010 02:47PM | Registered: 14 years ago Posts: 19 |
Re: GRRLib Poblem January 27, 2010 04:24PM | Registered: 15 years ago Posts: 175 |
Re: GRRLib Poblem January 28, 2010 05:47PM | Registered: 14 years ago Posts: 19 |
Re: GRRLib Poblem January 28, 2010 06:04PM | Registered: 15 years ago Posts: 175 |
rmode2 = VIDEO_GetPreferredMode(NULL); // double buffering, prevents flickering (is it needed for LCD TV? i don't have one to test) xfb[0] = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode2)); xfb[1] = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode2));and this too:
CON_Init(xfb[fbi],0,0,rmode2->fbWidth,rmode2->xfbHeight,rmode2->fbWidth*VI_DISPLAY_PIX_SZ); //VIDEO_ClearFrameBuffer(rmode2,xfb[fbi],COLOR_BLACK); printf("\n\n\n");And this:
static GXrmode2Obj *rmode2 = NULL;And this:
/*VIDEO_SetNextFramebuffer(xfb[fbi]); VIDEO_Flush(); VIDEO_WaitVSync();*/ fbi ^= 1;Don't use this: print_and_draw_wiimote_data(xfb[fbi]);