mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:30:05 +00:00 
			
		
		
		
	Use information available during DoMousePicking instead of params from
last render in MapWidget
This commit is contained in:
		
							parent
							
								
									4038fb2c43
								
							
						
					
					
						commit
						36e8690ad1
					
				
					 6 changed files with 9 additions and 22 deletions
				
			
		|  | @ -1649,8 +1649,15 @@ void MapWidgetImpl::ImGuiCheckFonts() | |||
| 
 | ||||
| void MapWidgetImpl::RunMousePicking() | ||||
| { | ||||
|    const QMapLibre::CustomLayerRenderParameters params = | ||||
|       context_->render_parameters(); | ||||
|    const QMapLibre::CustomLayerRenderParameters params = { | ||||
|       .width       = static_cast<double>(widget_->size().width()), | ||||
|       .height      = static_cast<double>(widget_->size().height()), | ||||
|       .latitude    = map_->coordinate().first, | ||||
|       .longitude   = map_->coordinate().second, | ||||
|       .zoom        = map_->zoom(), | ||||
|       .bearing     = map_->bearing(), | ||||
|       .pitch       = map_->pitch(), | ||||
|       .fieldOfView = 0}; | ||||
| 
 | ||||
|    auto coordinate = map_->coordinateForPixel(lastPos_); | ||||
|    auto mouseScreenCoordinate = | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak