From 78a213bd1982dcf21d72084d54d3aafc17f2d13f Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Fri, 5 Nov 2010 22:12:51 +0000 Subject: [PATCH] [CHG] Fixed some typographical errors. --- GRRLIB/GRRLIB/GRRLIB_3D.c | 14 +++++++------- GRRLIB/GRRLIB/GRRLIB_core.c | 2 +- GRRLIB/GRRLIB/GRRLIB_fileIO.c | 2 +- GRRLIB/GRRLIB/grrlib.h | 10 +++++----- GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_3D.c b/GRRLIB/GRRLIB/GRRLIB_3D.c index ef67016..086ad67 100644 --- a/GRRLIB/GRRLIB/GRRLIB_3D.c +++ b/GRRLIB/GRRLIB/GRRLIB_3D.c @@ -401,8 +401,8 @@ void GRRLIB_DrawTorus(f32 r, f32 R, int nsides, int rings, bool filled, u32 col) /** * Draw a sphere (with normal). * @param r Radius of the sphere. - * @param lats Number of lattitudes. - * @param longs Number of longitutes. + * @param lats Number of latitude. + * @param longs Number of longitudes. * @param filled Wired or not. * @param col Color of the sphere. */ @@ -501,7 +501,7 @@ void GRRLIB_DrawCube(f32 size, bool filled, u32 col) { * Draw a cylinder (with normal). * @param r Radius of the cylinder. * @param h High of the cylinder. - * @param d Dencity of slice. + * @param d Density of slice. * @param filled Wired or not. * @param col Color of the cylinder. */ @@ -552,7 +552,7 @@ void GRRLIB_DrawCylinder(f32 r, f32 h, int d, bool filled, u32 col) { * Draw a cone (with normal). * @param r Radius of the cone. * @param h High of the cone. - * @param d Dencity of slice. + * @param d Density of slice. * @param filled Wired or not. * @param col Color of the cone. */ @@ -588,10 +588,10 @@ void GRRLIB_DrawCone(f32 r, f32 h, int d, bool filled, u32 col) { } /** - * Draw a Tesselated pannel (with normal). + * Draw a Tesselated panel (with normal). * @param w Width of the panel. * @param wstep Size of width slices. - * @param h Height of the pannel. + * @param h Height of the panel. * @param hstep Size the de height slices. * @param filled Wired or not. * @param col Color in RGBA format. @@ -621,7 +621,7 @@ void GRRLIB_DrawTessPanel(f32 w, f32 wstep, f32 h, f32 hstep, bool filled, u32 c /** * Set ambient color. - * When no diffuse ligth is shinig on a object, the color is equal to ambient color. + * When no diffuse light is shining on a object, the color is equal to ambient color. * @param ambientcolor Ambient color in RGBA format. */ void GRRLIB_SetLightAmbient(u32 ambientcolor) { diff --git a/GRRLIB/GRRLIB/GRRLIB_core.c b/GRRLIB/GRRLIB/GRRLIB_core.c index bb53683..b4847dc 100644 --- a/GRRLIB/GRRLIB/GRRLIB_core.c +++ b/GRRLIB/GRRLIB/GRRLIB_core.c @@ -41,7 +41,7 @@ static bool is_setup = false; // To control entry and exit /** * Initialize GRRLIB. Call this once at the beginning your code. - * @return A integer representating a code: + * @return A integer representing a code: * - 0 : The operation completed successfully. * - -1 : Not enough memory is available to initialize GRRLIB. * - -2 : Failed to add the fat device driver to the devoptab. diff --git a/GRRLIB/GRRLIB/GRRLIB_fileIO.c b/GRRLIB/GRRLIB/GRRLIB_fileIO.c index 062c0bf..89bf4a0 100644 --- a/GRRLIB/GRRLIB/GRRLIB_fileIO.c +++ b/GRRLIB/GRRLIB/GRRLIB_fileIO.c @@ -29,7 +29,7 @@ THE SOFTWARE. * @param data Pointer-to-your-pointer. * Ie. { u8 *data; GRRLIB_LoadFile("file", &data); }. * It is your responsibility to free the memory allocated by this function. - * @return A integer representating a code: + * @return A integer representing a code: * - 0 : EmptyFile. * - -1 : FileNotFound. * - -2 : OutOfMemory. diff --git a/GRRLIB/GRRLIB/grrlib.h b/GRRLIB/GRRLIB/grrlib.h index 62c5347..a8b1ad0 100644 --- a/GRRLIB/GRRLIB/grrlib.h +++ b/GRRLIB/GRRLIB/grrlib.h @@ -26,7 +26,7 @@ THE SOFTWARE. */ /** * @defgroup AllFunc Everything in GRRLIB - * This is the complete list of funtions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB. + * This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB. * You simply need to include grrlib.h in your project to have access to all of these. * @{ */ @@ -60,10 +60,10 @@ typedef unsigned int uint;/**< The uint keyword signifies an integral type. */ //============================================================================== // Primitive colour macros //============================================================================== -#define R(c) (((c) >>24) &0xFF) /**< Exract Red component of colour. */ -#define G(c) (((c) >>16) &0xFF) /**< Exract Green component of colour. */ -#define B(c) (((c) >> 8) &0xFF) /**< Exract Blue component of colour. */ -#define A(c) ( (c) &0xFF) /**< Exract Alpha component of colour. */ +#define R(c) (((c) >>24) &0xFF) /**< Extract Red component of colour. */ +#define G(c) (((c) >>16) &0xFF) /**< Extract Green component of colour. */ +#define B(c) (((c) >> 8) &0xFF) /**< Extract Blue component of colour. */ +#define A(c) ( (c) &0xFF) /**< Extract Alpha component of colour. */ /** * Build an RGB pixel from components. diff --git a/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h b/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h index 2384ded..81512cc 100644 --- a/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h +++ b/GRRLIB/GRRLIB/grrlib/GRRLIB_settings.h @@ -28,7 +28,7 @@ THE SOFTWARE. #ifndef GX_BM_SUBTRACT /** * Blending type. - * libogc revision 4170 fixed a typo. GX_BM_SUBSTRACT was renamed GX_BM_SUBTRACT. + * libogc revision 4170 fixed a typographical error. GX_BM_SUBSTRACT was renamed GX_BM_SUBTRACT. * But for previous versions this define is needed. */ #define GX_BM_SUBTRACT GX_BM_SUBSTRACT