Commit 3c01a441 authored by Jan-Peter Nilsson's avatar Jan-Peter Nilsson Committed by Albert Astals Cid

Don't redraw entire game board on pause/unpause

parent a1f8504f
......@@ -448,7 +448,11 @@ void BoardWidget::updateSpriteMap()
void BoardWidget::pause()
{
gamePaused = !gamePaused;
drawBoard(!gamePaused);
QListIterator<KGameCanvasItem*> i(m_items);
while (i.hasNext())
{
i.next()->setVisible(!gamePaused);
}
}
void BoardWidget::gameLoaded()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment