Skip to content

Commit 295c464

Browse files
m-kuhnmhugent
authored andcommittedAug 9, 2012
Diabled backbuffering choice on any other system than X11
1 parent 677cea0 commit 295c464

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
 

‎src/app/qgsoptions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,10 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
230230
cmbScanZipInBrowser->setCurrentIndex( index );
231231

232232
// Set the enable backbuffer state
233+
#ifdef Q_WS_X11
233234
chkEnableBackbuffer->setChecked( settings.value( "/Map/enableBackbuffer" ).toBool() );
234235
toggleEnableBackbuffer( chkEnableBackbuffer->checkState() );
236+
#endif
235237

236238
// set the display update threshold
237239
spinBoxUpdateThreshold->setValue( settings.value( "/Map/updateThreshold" ).toInt() );
@@ -726,6 +728,7 @@ void QgsOptions::toggleStandardDeviation( int state )
726728
}
727729
}
728730

731+
#ifdef Q_WS_X11
729732
void QgsOptions::toggleEnableBackbuffer( int state )
730733
{
731734
if ( Qt::Checked == state )
@@ -739,6 +742,7 @@ void QgsOptions::toggleEnableBackbuffer( int state )
739742
spinBoxUpdateThreshold->setEnabled( true );
740743
}
741744
}
745+
#endif
742746

743747
QString QgsOptions::theme()
744748
{

‎src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,9 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
957957
//set update threshold before each draw to make sure the current setting is picked up
958958
QSettings settings;
959959
mUpdateThreshold = settings.value( "Map/updateThreshold", 0 ).toInt();
960+
#ifdef Q_WS_X11
960961
mEnableBackbuffer = settings.value( "/Map/enableBackbuffer", 1 ).toBool();
962+
#endif
961963

962964
if ( mUsingRendererV2 )
963965
{

‎src/gui/qgsmapcanvas.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,11 @@ void QgsMapCanvas::refresh()
371371
return;
372372

373373
QSettings settings;
374+
#ifdef Q_WS_X11
374375
bool enableBackbufferSetting = settings.value( "/Map/enableBackbuffer", 1 ).toBool();
375-
376+
#else
377+
bool enableBackbufferSetting = 0;
378+
#endif
376379

377380
//disable the update that leads to the resize crash
378381
if ( viewport() )

0 commit comments

Comments
 (0)