mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-12-22 18:39:18 +00:00
[CHG] Typos in comments
This commit is contained in:
parent
3a88515815
commit
ad300e55d8
6 changed files with 17 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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, ...);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue