Skip to content

Commit

Permalink
push Body shape properly
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed Oct 14, 2023
1 parent 438f31f commit 2290205
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions source/modules/graphics/wrap_graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,6 @@ int Wrap_Graphics::IsGammaCorrect(lua_State* L)
return 1;
}

/* todo */
int Wrap_Graphics::GetPixelWidth(lua_State* L)
{
auto screenName = luax::OptString(L, 1, love::GetDefaultScreen());
Expand All @@ -1688,7 +1687,6 @@ int Wrap_Graphics::GetPixelWidth(lua_State* L)
return 1;
}

/* todo */
int Wrap_Graphics::GetPixelHeight(lua_State* L)
{
auto screenName = luax::OptString(L, 1, love::GetDefaultScreen());
Expand All @@ -1702,7 +1700,6 @@ int Wrap_Graphics::GetPixelHeight(lua_State* L)
return 1;
}

/* todo */
int Wrap_Graphics::GetPixelDimensions(lua_State* L)
{
auto screenName = luax::OptString(L, 1, love::GetDefaultScreen());
Expand Down
6 changes: 5 additions & 1 deletion source/objects/body/wrap_body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,11 @@ int Wrap_Body::GetShape(lua_State* L)
auto* self = Wrap_Body::CheckBody(L, 1);

auto* shape = self->GetShape();
luax::PushType(L, shape);

if (shape)
Wrap_Shape::PushShape(L, shape);
else
lua_pushnil(L);

return 1;
}
Expand Down
1 change: 0 additions & 1 deletion source/objects/joint/wrap_joint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

using namespace love;

// TODO: Finish this
void Wrap_Joint::PushJoint(lua_State* L, Joint* joint)
{
if (joint == nullptr)
Expand Down

0 comments on commit 2290205

Please sign in to comment.