fix(ui): correct retry logic in CLayoutFrame::GetFirstPointX and CLayoutFrame::GetFirstPointY

This commit is contained in:
fallenoak 2025-12-03 20:42:47 -06:00
parent 54313696ee
commit 18f64ac439
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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;
} }