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