OrthographicProjection.scaling_mode is not just for resize (#11024)
Current comment is somewhat misleading: one may assume the field is used only when window is resized.
This commit is contained in:
		
							parent
							
								
									7d2e6cb468
								
							
						
					
					
						commit
						4852233298
					
				@ -251,7 +251,7 @@ pub struct OrthographicProjection {
 | 
				
			|||||||
    /// Defaults to `(0.5, 0.5)`, which makes scaling affect opposite sides equally, keeping the center
 | 
					    /// Defaults to `(0.5, 0.5)`, which makes scaling affect opposite sides equally, keeping the center
 | 
				
			||||||
    /// point of the viewport centered.
 | 
					    /// point of the viewport centered.
 | 
				
			||||||
    pub viewport_origin: Vec2,
 | 
					    pub viewport_origin: Vec2,
 | 
				
			||||||
    /// How the projection will scale when the viewport is resized.
 | 
					    /// How the projection will scale to the viewport.
 | 
				
			||||||
    ///
 | 
					    ///
 | 
				
			||||||
    /// Defaults to `ScalingMode::WindowSize(1.0)`
 | 
					    /// Defaults to `ScalingMode::WindowSize(1.0)`
 | 
				
			||||||
    pub scaling_mode: ScalingMode,
 | 
					    pub scaling_mode: ScalingMode,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user