mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	core/frontend/emu_window: Make ClipToTouchScreen a const member function
This member function doesn't modify instance state, so it can have the const specifier applied to it.
This commit is contained in:
		
							parent
							
								
									6149be43cf
								
							
						
					
					
						commit
						f322c51a63
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -75,7 +75,7 @@ static bool IsWithinTouchscreen(const Layout::FramebufferLayout& layout, unsigne | |||
|     } | ||||
| } | ||||
| 
 | ||||
| std::tuple<unsigned, unsigned> EmuWindow::ClipToTouchScreen(unsigned new_x, unsigned new_y) { | ||||
| std::tuple<unsigned, unsigned> EmuWindow::ClipToTouchScreen(unsigned new_x, unsigned new_y) const { | ||||
|     if (Settings::values.toggle_3d) { | ||||
|         if (new_x >= framebuffer_layout.width / 2) | ||||
|             new_x -= framebuffer_layout.width / 2; | ||||
|  |  | |||
|  | @ -164,5 +164,5 @@ private: | |||
|     /**
 | ||||
|      * Clip the provided coordinates to be inside the touchscreen area. | ||||
|      */ | ||||
|     std::tuple<unsigned, unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y); | ||||
|     std::tuple<unsigned, unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y) const; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue