mirror of
				https://github.com/Ryujinx/Opentk.git
				synced 2025-11-04 04:45:01 +00:00 
			
		
		
		
	[Platform] Forward PointToScreen to backend
This commit is contained in:
		
							parent
							
								
									637a8bee66
								
							
						
					
					
						commit
						cd315a3bd6
					
				| 
						 | 
				
			
			@ -163,12 +163,7 @@ namespace OpenTK
 | 
			
		|||
        /// </returns>
 | 
			
		||||
        public Point PointToScreen(Point point)
 | 
			
		||||
        {
 | 
			
		||||
            // Here we use the fact that PointToClient just translates the point, and PointToScreen
 | 
			
		||||
            // should perform the inverse operation.
 | 
			
		||||
            Point trans = PointToClient(Point.Empty);
 | 
			
		||||
            point.X -= trans.X;
 | 
			
		||||
            point.Y -= trans.Y;
 | 
			
		||||
            return point;
 | 
			
		||||
            return implementation.PointToScreen(point);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        #endregion
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue