From 6649c513f84eebb31523bd70208904e1467f6202 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Tue, 20 Jan 2009 05:17:13 +0000 Subject: [PATCH] [CHG] README.TXT update --- README.TXT | 1 + template/source/GRRLIB/GRRLIB.c | 1 - template/source/main.c | 7 ++++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.TXT b/README.TXT index 4cc5630..3ad0740 100644 --- a/README.TXT +++ b/README.TXT @@ -48,6 +48,7 @@ ChangeLog : * added GRRLIB_LoadTextureJPG (thx crayon for the file end detection idea) +* InitVideo() and GRRLIB_Start() merge into GRRLIB_Init(). have a look at the sample code to see how all this work ;) diff --git a/template/source/GRRLIB/GRRLIB.c b/template/source/GRRLIB/GRRLIB.c index 057c7cc..ff6984a 100644 --- a/template/source/GRRLIB/GRRLIB.c +++ b/template/source/GRRLIB/GRRLIB.c @@ -6,7 +6,6 @@ ===========================================*/ #include #include -#include #include #include #include diff --git a/template/source/main.c b/template/source/main.c index 7897770..1bc6c06 100644 --- a/template/source/main.c +++ b/template/source/main.c @@ -21,9 +21,10 @@ Mtx GXmodelView2D; -int main(){ +int main() { int left = 0; ir_t ir1; + u32 wpaddown, wpadheld; GRRLIB_Init(); @@ -49,8 +50,8 @@ int main(){ while(1){ WPAD_SetVRes(0, 640, 480); WPAD_ScanPads(); - u32 wpaddown = WPAD_ButtonsDown(0); - u32 wpadheld = WPAD_ButtonsHeld(0); + wpaddown = WPAD_ButtonsDown(0); + wpadheld = WPAD_ButtonsHeld(0); WPAD_IR(WPAD_CHAN_0, &ir1);