mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2025-10-04 07:37:22 +00:00
static_cast (SDL)
This commit is contained in:
parent
7a0aa7f714
commit
de0d6f6791
|
@ -58,12 +58,12 @@ void EmuWindow_SDL2::OnFingerDown(SDL_FingerID finger, float x, float y) {
|
|||
// 3DS does
|
||||
|
||||
const auto [px, py] = TouchToPixelPos(x, y);
|
||||
TouchPressed((unsigned)std::max(px, 0), (unsigned)std::max(py, 0));
|
||||
TouchPressed(static_cast<unsigned>(std::max(px, 0)), static_cast<unsigned>(std::max(py, 0)));
|
||||
}
|
||||
|
||||
void EmuWindow_SDL2::OnFingerMotion(SDL_FingerID finger, float x, float y) {
|
||||
const auto [px, py] = TouchToPixelPos(x, y);
|
||||
TouchMoved((unsigned)std::max(px, 0), (unsigned)std::max(py, 0));
|
||||
TouchMoved(static_cast<unsigned>(std::max(px, 0)), static_cast<unsigned>(std::max(py, 0)));
|
||||
}
|
||||
|
||||
void EmuWindow_SDL2::OnFingerUp(SDL_FingerID finger) {
|
||||
|
|
Loading…
Reference in a new issue