diff --git a/.todo b/.todo index 5a193cb..cb1ddaa 100644 --- a/.todo +++ b/.todo @@ -1,2 +1 @@ -- add functions to draw 2d graphics (lines, rectangles) - fix bug with wfobj objects changing appearance of managed objects diff --git a/Engine.cc b/Engine.cc index 25ad59f..2be23b8 100644 --- a/Engine.cc +++ b/Engine.cc @@ -993,6 +993,8 @@ void Engine::Object::createManagedObject() /* prerequisite: m_args->size() is big enough */ void Engine::Object::render() { + if (!m_is_managed) + return; GLUquadric * quad = gluNewQuadric(); if (m_display_list <= 0) m_display_list = glGenLists(1); diff --git a/tests/bowling.lua b/tests/bowling.lua index ecb880b..8cb5541 100644 --- a/tests/bowling.lua +++ b/tests/bowling.lua @@ -56,7 +56,7 @@ end function update_overlay_event(width, height) local tw, th = ag.getTextSize("Hi there", 18) - ag.drawText("Hi there", 1, 1, 1, 18, width - tw - 4, height - th - 4) + ag.drawText("Hi there", 1, 1, 0, 18, width - tw - 40, height - th - 40) -- ag.drawLine(1, 0, 0.3, 10, 10, 40, 60) -- ag.drawLine(1, 0.7, 1, 50, 10, 100, 60, 5) -- ag.drawRect(0, 1, 0, 40, 40, width / 2, height / 2)