Skip to content

Commit

Permalink
Canvas: Removed forcePaint() method
Browse files Browse the repository at this point in the history
Better to just call update() or repaint().
  • Loading branch information
skyjake committed Mar 18, 2012
1 parent 85097c2 commit 80356ce
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions doomsday/engine/portable/src/canvas.cpp
Expand Up @@ -113,17 +113,6 @@ void Canvas::setResizedFunc(void (*canvasResizedFunc)(Canvas&))
d->resizedCallback = canvasResizedFunc;
}

void Canvas::forcePaint()
{
#if 1
// This is the system-friendliest option: request repaint at the earliest convenience.
update();
#else
// Immediate paint.
repaint();
#endif
}

QImage Canvas::grabImage(const QSize& outputSize)
{
QImage grabbed = grabFrameBuffer(); // no alpha
Expand Down

0 comments on commit 80356ce

Please sign in to comment.