[CHG] math.h is not needed in GRRLIB_fbSimple.h

This commit is contained in:
Crayon2000 2009-10-20 22:21:01 +00:00
parent 1e84350468
commit 01adcdf9b9

View file

@ -25,8 +25,6 @@ THE SOFTWARE.
* Inline functions for primitive point and line drawing. * Inline functions for primitive point and line drawing.
*/ */
#include <math.h>
/** /**
* Clear screen with a specific color. * Clear screen with a specific color.
* @param color The color to use to fill the screen. * @param color The color to use to fill the screen.
@ -48,7 +46,7 @@ void GRRLIB_FillScreen (const u32 color) {
INLINE INLINE
void GRRLIB_Plot (const f32 x, const f32 y, const u32 color) { void GRRLIB_Plot (const f32 x, const f32 y, const u32 color) {
GX_Begin(GX_POINTS, GX_VTXFMT0, 1); GX_Begin(GX_POINTS, GX_VTXFMT0, 1);
GX_Position3f32(x, y, 0); GX_Position3f32(x, y, 0);
GX_Color1u32(color); GX_Color1u32(color);
GX_End(); GX_End();
} }
@ -66,7 +64,7 @@ INLINE
void GRRLIB_Line (const f32 x1, const f32 y1, void GRRLIB_Line (const f32 x1, const f32 y1,
const f32 x2, const f32 y2, const u32 color) { const f32 x2, const f32 y2, const u32 color) {
GX_Begin(GX_LINES, GX_VTXFMT0, 2); GX_Begin(GX_LINES, GX_VTXFMT0, 2);
GX_Position3f32(x1, y1, 0); GX_Position3f32(x1, y1, 0);
GX_Color1u32(color); GX_Color1u32(color);
GX_Position3f32(x2, y2, 0); GX_Position3f32(x2, y2, 0);
GX_Color1u32(color); GX_Color1u32(color);