From 439cc653825151b7b84182b9aff0a4354af8e633 Mon Sep 17 00:00:00 2001 From: muddmaker Date: Sat, 23 May 2015 16:06:36 -0700 Subject: [PATCH] Fix typo --- src/modules/graphics/opengl/Graphics.cpp | 2 +- src/modules/graphics/opengl/Graphics.h | 2 +- src/modules/graphics/opengl/wrap_Graphics.cpp | 6 +++--- src/modules/graphics/opengl/wrap_Graphics.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 527e02d71..c21348d46 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -1134,7 +1134,7 @@ void Graphics::circle(DrawMode mode, float x, float y, float radius, int points) delete[] coords; } -void Graphics::eclipse(DrawMode mode, float x, float y, float a, float b, int points) +void Graphics::ellipse(DrawMode mode, float x, float y, float a, float b, int points) { float two_pi = static_cast(LOVE_M_PI * 2); if (points <= 0) points = 1; diff --git a/src/modules/graphics/opengl/Graphics.h b/src/modules/graphics/opengl/Graphics.h index f170ff948..3979470be 100644 --- a/src/modules/graphics/opengl/Graphics.h +++ b/src/modules/graphics/opengl/Graphics.h @@ -386,7 +386,7 @@ public: * @param b Radius in y-direction * @param points Number of points to use to draw the circle. **/ - void eclipse(DrawMode mode, float x, float y, float a, float b, int points = 10); + void ellipse(DrawMode mode, float x, float y, float a, float b, int points = 10); /** * Draws an arc using the specified arguments. diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index b8ecc3b24..62ae43d17 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -1556,7 +1556,7 @@ int w_circle(lua_State *L) return 0; } -int w_eclipse(lua_State *L) +int w_ellipse(lua_State *L) { Graphics::DrawMode mode; const char *str = luaL_checkstring(L, 1); @@ -1573,7 +1573,7 @@ int w_eclipse(lua_State *L) else points = luaL_checkint(L, 6); - instance()->eclipse(mode, x, y, a, b, points); + instance()->ellipse(mode, x, y, a, b, points); return 0; } @@ -1807,7 +1807,7 @@ static const luaL_Reg functions[] = { "line", w_line }, { "rectangle", w_rectangle }, { "circle", w_circle }, - { "eclipse", w_eclipse }, + { "eclipse", w_ellipse }, { "arc", w_arc }, { "roundedRectangle", w_roundedRectangle }, diff --git a/src/modules/graphics/opengl/wrap_Graphics.h b/src/modules/graphics/opengl/wrap_Graphics.h index fee8fbf66..b51101c81 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.h +++ b/src/modules/graphics/opengl/wrap_Graphics.h @@ -109,7 +109,7 @@ int w_point(lua_State *L); int w_line(lua_State *L); int w_rectangle(lua_State *L); int w_circle(lua_State *L); -int w_eclipse(lua_State *L); +int w_ellipse(lua_State *L); int w_arc(lua_State *L); int w_roundedRectangle(lua_State *L); int w_polygon(lua_State *L);