mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fix typo
This commit is contained in:
@@ -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<float>(LOVE_M_PI * 2);
|
||||
if (points <= 0) points = 1;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 },
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user