mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Add anti-aliasing to settings
This commit is contained in:
		
							parent
							
								
									3a754c01c5
								
							
						
					
					
						commit
						c5a56680ea
					
				
					 6 changed files with 32 additions and 6 deletions
				
			
		|  | @ -201,9 +201,12 @@ public slots: | |||
| MapWidget::MapWidget(const QMapLibreGL::Settings& settings) : | ||||
|     p(std::make_unique<MapWidgetImpl>(this, settings)) | ||||
| { | ||||
|    QSurfaceFormat surfaceFormat = QSurfaceFormat::defaultFormat(); | ||||
|    surfaceFormat.setSamples(4); | ||||
|    setFormat(surfaceFormat); | ||||
|    if (settings::GeneralSettings::Instance().anti_aliasing_enabled().GetValue()) | ||||
|    { | ||||
|       QSurfaceFormat surfaceFormat = QSurfaceFormat::defaultFormat(); | ||||
|       surfaceFormat.setSamples(4); | ||||
|       setFormat(surfaceFormat); | ||||
|    } | ||||
| 
 | ||||
|    setFocusPolicy(Qt::StrongFocus); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat