Commit 3a4d7ea8 authored by Ian Wadham's avatar Ian Wadham

Allow the possibility of a three-dimensional custom-built puzzle.

svn path=/trunk/KDE/kdegames/ksudoku/; revision=1285810
parent 7efb33af
......@@ -60,7 +60,16 @@ void KsView::createView() {
break;
}
case TypeCustom: {
#ifdef OPENGL_SUPPORT
if(m_game.puzzle()->graph()->sizeZ() > 1) {
setWidget(new RoxdokuView(m_game, 0, 0));
}
else {
setWidget(new View2D(0, m_game, m_gameActions));
}
#else
setWidget(new View2D(0, m_game, m_gameActions));
#endif
break;
}
#ifdef OPENGL_SUPPORT
......
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