QTfrontend/mapContainer.cpp
changeset 1348 0eb0b3a955b8
parent 1333 b0b0510eb82d
child 1365 2ffe20744a4a
--- a/QTfrontend/mapContainer.cpp	Mon Oct 13 14:44:15 2008 +0000
+++ b/QTfrontend/mapContainer.cpp	Mon Oct 13 14:51:31 2008 +0000
@@ -132,12 +132,12 @@
 void HWMapContainer::loadMap(int index)
 {
   QPixmap mapImage;
-  if(!mapImage.load(datadir->absolutePath() + "/Maps/" + chooseMap->currentText() + "/map.png")) {
+  if(!mapImage.load(datadir->absolutePath() + "/Maps/" + chooseMap->currentText() + "/preview.png")) {
     changeImage();
     chooseMap->setCurrentIndex(0);
     return;
   }
-  imageButt->setIcon(mapImage.scaled(256, 128));
+  imageButt->setIcon(mapImage);
   QFile mapCfgFile(datadir->absolutePath() + "/Maps/" + chooseMap->currentText() + "/map.cfg");
   if (mapCfgFile.open(QFile::ReadOnly)) {
     QTextStream input(&mapCfgFile);