[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/ktron
From: Dmitry Suzdalev <dimsuz () gmail ! com>
Date: 2006-08-06 22:01:54
Message-ID: 1154901714.764047.29610.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 570479 by dimsuz:
Some fixes
M +6 -14 tron.cpp
--- trunk/KDE/kdegames/ktron/tron.cpp #570478:570479
@@ -91,8 +91,7 @@
}
// Backgroundimage
-#warning commented this because with it it crashed
-// setBackgroundPix(NULL);
+ setBackgroundPix(QPixmap());
if(Settings::backgroundImageChoice()){
KUrl url ( Settings::backgroundImage() );
if(!url.isEmpty()){
@@ -107,8 +106,7 @@
}
KIO::NetAccess::removeTempFile(tmpFile);
}
-#warning commented this because with it it crashed
- // else setBackgroundPix(NULL);
+ else setBackgroundPix(QPixmap());
}
setComputerplayer(One, Settings::computerplayer1());
setComputerplayer(Two, Settings::computerplayer2());
@@ -116,23 +114,17 @@
Tron::~Tron()
{
- if(playfield)
- {
- delete [] playfield;
- }
- if(pixmap)
- delete pixmap;
+ delete[] playfield;
+ delete pixmap;
delete timer;
}
void Tron::createNewPlayfield()
{
- if(playfield)
- delete [] playfield;
+ delete[] playfield;
- if(pixmap)
- delete pixmap;
+ delete pixmap;
// field size
fieldWidth=(width()-2*TRON_FRAMESIZE)/rectSize;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic