From 46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 27 Feb 2019 08:54:40 -0500 Subject: 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. --- src/core/frontend/emu_window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/frontend/emu_window.h') diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index 7006a37b3..d0bcb4660 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h @@ -166,7 +166,7 @@ private: /** * Clip the provided coordinates to be inside the touchscreen area. */ - std::tuple ClipToTouchScreen(unsigned new_x, unsigned new_y); + std::tuple ClipToTouchScreen(unsigned new_x, unsigned new_y) const; }; } // namespace Core::Frontend -- cgit v1.2.3