Fix minor issues found in testing

Change-Id: If40f10043951409b3d6597776b60d7eb55c73eec
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
This commit is contained in:
Miikka Heikkinen 2014-10-07 15:03:35 +03:00
parent aab6b4f77d
commit 0d102fc303
3 changed files with 5 additions and 2 deletions

View File

@ -42,7 +42,7 @@ const int mineShaftDiameter(1);
const int airColorIndex(254);
const int mineShaftColorIndex(255);
const int layerColorThickness(60);
const int heightToColorDiv(128);
const int heightToColorDiv(140);
const int magmaColorsMin(0);
const int magmaColorsMax(layerColorThickness);
const int aboveWaterGroundColorsMin(magmaColorsMax + 1);

View File

@ -45,6 +45,9 @@ TextureHelper::TextureHelper()
TextureHelper::~TextureHelper()
{
#if !defined(QT_OPENGL_ES_2)
delete m_openGlFunctions_2_1;
#endif
}
GLuint TextureHelper::create2DTexture(const QImage &image, bool useTrilinearFiltering,

View File

@ -236,7 +236,7 @@ int main(int argc, char **argv)
QCheckBox *inputHandlerZoomAtTargetCheckBox = new QCheckBox(widget);
inputHandlerZoomAtTargetCheckBox->setText("IH: setZoomAtTarget");
inputHandlerZoomAtTargetCheckBox->setChecked(false);
inputHandlerZoomAtTargetCheckBox->setChecked(true);
QSlider *rotationSliderX = new QSlider(Qt::Horizontal, widget);
rotationSliderX->setTickInterval(1);