From ad300e55d89d008c200756d1a1182c13a14c3b55 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Sat, 9 Jan 2010 02:41:47 +0000 Subject: [PATCH] [CHG] Typos in comments --- GRRLIB/GRRLIB/GRRLIB_bmfx.c | 8 ++++---- GRRLIB/GRRLIB/GRRLIB_texEdit.c | 2 +- GRRLIB/GRRLIB/grrlib/GRRLIB__lib.h | 2 +- GRRLIB/GRRLIB/grrlib/GRRLIB_fbGX.h | 2 +- GRRLIB/GRRLIB/grrlib/GRRLIB_fbSimple.h | 19 +++++++++---------- GRRLIB/GRRLIB/grrlib/GRRLIB_texSetup.h | 3 +-- 6 files changed, 17 insertions(+), 19 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_bmfx.c b/GRRLIB/GRRLIB/GRRLIB_bmfx.c index 1a2eef3..3c9cf7b 100644 --- a/GRRLIB/GRRLIB/GRRLIB_bmfx.c +++ b/GRRLIB/GRRLIB/GRRLIB_bmfx.c @@ -231,11 +231,11 @@ void GRRLIB_BMFX_Pixelate (const GRRLIB_texImg *texsrc, for (x = 0; x < texsrc->w - 1 - factor; x += factor) { for (y = 0; y < texsrc->h - 1 - factor; y +=factor) { rgb = GRRLIB_GetPixelFromtexImg(x, y, texsrc); - for (xx = x; xx < x + factor; xx++) { - for (yy = y; yy < y + factor; yy++) { - GRRLIB_SetPixelTotexImg(xx, yy, texdest, rgb); - } + for (xx = x; xx < x + factor; xx++) { + for (yy = y; yy < y + factor; yy++) { + GRRLIB_SetPixelTotexImg(xx, yy, texdest, rgb); } + } } } } diff --git a/GRRLIB/GRRLIB/GRRLIB_texEdit.c b/GRRLIB/GRRLIB/GRRLIB_texEdit.c index 596b312..6dcb801 100644 --- a/GRRLIB/GRRLIB/GRRLIB_texEdit.c +++ b/GRRLIB/GRRLIB/GRRLIB_texEdit.c @@ -278,7 +278,7 @@ GRRLIB_texImg* GRRLIB_LoadTextureBMP (const u8 *my_bmp) { /** * Load a texture from a buffer. - * Take care to have the JPG finnish with 0xFF 0xD9! + * Take care to have the JPG finish with 0xFF 0xD9! * @param my_jpg The JPEG buffer to load. * @return A GRRLIB_texImg structure filled with image information. */ diff --git a/GRRLIB/GRRLIB/grrlib/GRRLIB__lib.h b/GRRLIB/GRRLIB/grrlib/GRRLIB__lib.h index 6580795..4566cae 100644 --- a/GRRLIB/GRRLIB/grrlib/GRRLIB__lib.h +++ b/GRRLIB/GRRLIB/grrlib/GRRLIB__lib.h @@ -89,7 +89,7 @@ GRRLIB_texImg* GRRLIB_LoadTextureFromFile (const char* filename); bool GRRLIB_ScrShot (const char* filename); //------------------------------------------------------------------------------ -// GRRLIB_print.c - Will someome please tell me what these are :) +// GRRLIB_print.c - Will someone please tell me what these are :) void GRRLIB_Printf (const f32 xpos, const f32 ypos, const GRRLIB_texImg *tex, const u32 color, const f32 zoom, const char *text, ...); diff --git a/GRRLIB/GRRLIB/grrlib/GRRLIB_fbGX.h b/GRRLIB/GRRLIB/grrlib/GRRLIB_fbGX.h index 2f6da80..f682e00 100644 --- a/GRRLIB/GRRLIB/grrlib/GRRLIB_fbGX.h +++ b/GRRLIB/GRRLIB/grrlib/GRRLIB_fbGX.h @@ -39,7 +39,7 @@ void GRRLIB_GXEngine (const guVector v[], const u32 color[], const long n, GX_Begin(fmt, GX_VTXFMT0, n); for (i = 0; i < n; i++) { - GX_Position3f32(v[i].x, v[i].y, v[i].z); + GX_Position3f32(v[i].x, v[i].y, v[i].z); GX_Color1u32(color[i]); } GX_End(); diff --git a/GRRLIB/GRRLIB/grrlib/GRRLIB_fbSimple.h b/GRRLIB/GRRLIB/grrlib/GRRLIB_fbSimple.h index ff237fa..f62a6ae 100644 --- a/GRRLIB/GRRLIB/grrlib/GRRLIB_fbSimple.h +++ b/GRRLIB/GRRLIB/grrlib/GRRLIB_fbSimple.h @@ -82,33 +82,32 @@ INLINE void GRRLIB_Rectangle (const f32 x, const f32 y, const f32 width, const f32 height, const u32 color, const u8 filled) { - f32 x2 = x + width; f32 y2 = y + height; if (filled) { GX_Begin(GX_QUADS, GX_VTXFMT0, 4); - GX_Position3f32(x,y,0.0f); + GX_Position3f32(x, y, 0.0f); GX_Color1u32(color); - GX_Position3f32(x2,y,0.0f); + GX_Position3f32(x2, y, 0.0f); GX_Color1u32(color); - GX_Position3f32(x2,y2,0.0f); + GX_Position3f32(x2, y2, 0.0f); GX_Color1u32(color); - GX_Position3f32(x,y2,0.0f); + GX_Position3f32(x, y2, 0.0f); GX_Color1u32(color); GX_End(); } else { GX_Begin(GX_LINESTRIP, GX_VTXFMT0, 5); - GX_Position3f32(x,y,0.0f); + GX_Position3f32(x, y, 0.0f); GX_Color1u32(color); - GX_Position3f32(x2,y,0.0f); + GX_Position3f32(x2, y, 0.0f); GX_Color1u32(color); - GX_Position3f32(x2,y2,0.0f); + GX_Position3f32(x2, y2, 0.0f); GX_Color1u32(color); - GX_Position3f32(x,y2,0.0f); + GX_Position3f32(x, y2, 0.0f); GX_Color1u32(color); - GX_Position3f32(x,y,0.0f); + GX_Position3f32(x, y, 0.0f); GX_Color1u32(color); GX_End(); } diff --git a/GRRLIB/GRRLIB/grrlib/GRRLIB_texSetup.h b/GRRLIB/GRRLIB/grrlib/GRRLIB_texSetup.h index d6161cf..9b0e92a 100644 --- a/GRRLIB/GRRLIB/grrlib/GRRLIB_texSetup.h +++ b/GRRLIB/GRRLIB/grrlib/GRRLIB_texSetup.h @@ -82,8 +82,7 @@ void GRRLIB_FreeTexture (GRRLIB_texImg *tex) { * @param tex Texture to clear. */ INLINE -void GRRLIB_ClearTex(GRRLIB_texImg* tex) -{ +void GRRLIB_ClearTex(GRRLIB_texImg* tex) { bzero(tex->data, (tex->h * tex->w) << 2); GRRLIB_FlushTex(tex); }