mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Make things more consistent in the no-present case
This commit is contained in:
1 parent
37052cc1ae
commit
aa17599f66
4 files changed
+51
-29
No files matched your search
@@ -321,17 +321,17 @@ float GetTargetScore(const Point2D &originPos, int originIndex, const View *orig
|
||||
distance = 0.001f;
|
||||
}
|
||||
float overlap = 0.0f;
|
||||
float dirX = dx / distance;
|
||||
float dirY = dy / distance;
|
||||
const float dirX = dx / distance;
|
||||
const float dirY = dy / distance;
|
||||
|
||||
bool wrongDirection = false;
|
||||
bool vertical = false;
|
||||
float horizOverlap = HorizontalOverlap(origin->GetBounds(), destination->GetBounds());
|
||||
float vertOverlap = VerticalOverlap(origin->GetBounds(), destination->GetBounds());
|
||||
const float horizOverlap = HorizontalOverlap(origin->GetBounds(), destination->GetBounds());
|
||||
const float vertOverlap = VerticalOverlap(origin->GetBounds(), destination->GetBounds());
|
||||
if (horizOverlap == 1.0f && vertOverlap == 1.0f) {
|
||||
if (direction != FOCUS_PREV_PAGE && direction != FOCUS_NEXT_PAGE) {
|
||||
INFO_LOG(Log::UI, "Contain overlap");
|
||||
return 0.0;
|
||||
INFO_LOG(Log::UI, "Contain overlap: %s, %s", origin->Tag().c_str(), destination->Tag().c_str());
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
float originSize = 0.0f;
|
||||
|
||||
Reference in new issue
Block a user