mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
fix(ui): correct retry logic in CLayoutFrame::GetFirstPointX and CLayoutFrame::GetFirstPointY
This commit is contained in:
1 file changed
+2
-8
@@ -315,10 +315,7 @@ void CLayoutFrame::GetClampRectInsets(float& a1, float& a2, float& a3, float& a4
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CLayoutFrame::GetFirstPointX(const FRAMEPOINT* const pointarray, int32_t elements, float& x) {
|
void CLayoutFrame::GetFirstPointX(const FRAMEPOINT* const pointarray, int32_t elements, float& x) {
|
||||||
// TODO
|
for (int32_t retry = 0; retry < 10; retry++) {
|
||||||
// - what's up with this loop?
|
|
||||||
|
|
||||||
for (int32_t i = 0; i < FRAMEPOINT_NUMPOINTS; i++) {
|
|
||||||
if (this->Sub488DB0(pointarray, elements, x)) {
|
if (this->Sub488DB0(pointarray, elements, x)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -326,10 +323,7 @@ void CLayoutFrame::GetFirstPointX(const FRAMEPOINT* const pointarray, int32_t el
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CLayoutFrame::GetFirstPointY(const FRAMEPOINT* const pointarray, int32_t elements, float& y) {
|
void CLayoutFrame::GetFirstPointY(const FRAMEPOINT* const pointarray, int32_t elements, float& y) {
|
||||||
// TODO
|
for (int32_t retry = 0; retry < 10; retry++) {
|
||||||
// - what's up with this loop?
|
|
||||||
|
|
||||||
for (int32_t i = 0; i < FRAMEPOINT_NUMPOINTS; i++) {
|
|
||||||
if (this->Sub488E40(pointarray, elements, y)) {
|
if (this->Sub488E40(pointarray, elements, y)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user