diff options
author | Lioncash <mathew1800@gmail.com> | 2019-02-27 14:54:40 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-02-27 14:54:42 +0100 |
commit | 46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa (patch) | |
tree | 93541f8d13c43c641fe802c53ae8d4d8787cd51c | |
parent | Merge pull request #2164 from ReinUsesLisp/configure-blit (diff) | |
download | yuzu-46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa.tar yuzu-46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa.tar.gz yuzu-46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa.tar.bz2 yuzu-46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa.tar.lz yuzu-46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa.tar.xz yuzu-46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa.tar.zst yuzu-46b3209abb271289d28e2ca7dfc8e2a9ed7d4afa.zip |
-rw-r--r-- | src/core/frontend/emu_window.cpp | 2 | ||||
-rw-r--r-- | src/core/frontend/emu_window.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp index 9dd493efb..e29afd630 100644 --- a/src/core/frontend/emu_window.cpp +++ b/src/core/frontend/emu_window.cpp @@ -67,7 +67,7 @@ static bool IsWithinTouchscreen(const Layout::FramebufferLayout& layout, unsigne framebuffer_x >= layout.screen.left && framebuffer_x < layout.screen.right); } -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 { new_x = std::max(new_x, framebuffer_layout.screen.left); new_x = std::min(new_x, framebuffer_layout.screen.right - 1); 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<unsigned, unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y); + std::tuple<unsigned, unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y) const; }; } // namespace Core::Frontend |