Skip to content

Commit

Permalink
Cleanup|libgui|Canvas: No need for a fallback drawer
Browse files Browse the repository at this point in the history
CanvasWindow always registers a draw observer.
  • Loading branch information
skyjake committed Apr 25, 2013
1 parent d76d59d commit 510e089
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions doomsday/libgui/src/canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,21 +298,7 @@ void Canvas::notifyReady()

void Canvas::paintGL()
{
if(!audienceForGLDraw.isEmpty())
{
DENG2_FOR_AUDIENCE(GLDraw, i) i->canvasGLDraw(*this);
}
else
{
LOG_AS("Canvas");
LOG_TRACE("Drawing with default paint func.");

// Since we don't know what else to draw, just draw blackness.
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);

swapBuffers();
}
DENG2_FOR_AUDIENCE(GLDraw, i) i->canvasGLDraw(*this);
}

void Canvas::focusInEvent(QFocusEvent*)
Expand Down

0 comments on commit 510e089

Please sign in to comment.