X-Git-Url: http://git.maemo.org/git/?p=impuzzle;a=blobdiff_plain;f=src%2Fimageimporter.cpp;h=e666335c10eb272495c2c11e4a6553e7a3f719a9;hp=ab341e95fe8948dcfe38fb3c4ad847bbb21fb8cc;hb=fe6a84bdca195d7eae5f21447f4d9aad5226db49;hpb=f8d3a8441d4b16d156a51ee3faecf9a2dd83f9b6 diff --git a/src/imageimporter.cpp b/src/imageimporter.cpp index ab341e9..e666335 100644 --- a/src/imageimporter.cpp +++ b/src/imageimporter.cpp @@ -61,13 +61,14 @@ QList ImageImporter::newPieces(const QPixmap &pixmap, const int co int horizontalCount = 0; - if(count == 12) { - horizontalCount = 4; + if(count == EASY_PIECE_COUNT) { + horizontalCount = EASY_HORIZONTAL_COUNT; } - else if(count == 20) { - horizontalCount = 5; + else if(count == HARD_PIECE_COUNT) { + horizontalCount = HARD_HORIZONTAL_COUNT; } else { + qDebug() << QString("Bad piece count ( %1 ) @ ImageImporter::newPieces").arg(count); return list; }