mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 14:30:27 +02:00
Experiment (#9647): Prevent NaN values from getting into the UI system through TouchInput
This commit is contained in:
1 parent
6aca39722f
commit
7d89e5d84c
1 file changed
+4
@@ -945,6 +945,10 @@ bool NativeIsAtTopLevel() {
|
||||
|
||||
bool NativeTouch(const TouchInput &touch) {
|
||||
if (screenManager) {
|
||||
// Brute force prevent NaNs from getting into the UI system
|
||||
if (my_isnan(touch.x) || my_isnan(touch.y)) {
|
||||
return false;
|
||||
}
|
||||
screenManager->touch(touch);
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user