mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
[CHG] Typos in comments
This commit is contained in:
parent
3a88515815
commit
ad300e55d8
6 changed files with 17 additions and 19 deletions
|
@ -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, ...);
|
||||
|
|
|
@ -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