fix: physic debug drawer
This commit is contained in:
parent
41f726b489
commit
be23fedc84
|
|
@ -31,7 +31,7 @@ class PhysicWorld::DebugDrawer : public b2Draw
|
|||
public:
|
||||
DebugDrawer(const Size& size)
|
||||
{
|
||||
canvas_ = MakePtr<Canvas>(size);
|
||||
canvas_ = MakePtr<Canvas>(PixelSize(uint32_t(size.x), uint32_t(size.y)));
|
||||
ctx_ = canvas_->GetContext2D();
|
||||
|
||||
b2Draw::SetFlags(b2Draw::e_shapeBit | b2Draw::e_jointBit | b2Draw::e_jointBit | b2Draw::e_centerOfMassBit);
|
||||
|
|
|
|||
Loading…
Reference in New Issue