diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-08-02 21:04:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-02 21:04:29 -0400 |
| commit | 380407dd2691ca4c0f3772092f39a7b3b528d1e4 (patch) | |
| tree | 24623107f4d614c23dfb277013a8dc4171324fa0 /src/JSystem/J2DGraph/J2DTextBox.cpp | |
| parent | dbc093a3cfefac7f38088aa14c07115390d14fe5 (diff) | |
msg work (#1143)
* fopMsgM_msgDataProc_c::stringSet work
* Fix JPN
* More stringSet work
* work
* get rid of fake temps
* stringSet 99.99%
* fopMsgM_msgDataProc_c::stringLength 100%
* d_msg work
* fix pal
* fix message_paper, d_meter version diff fixes
Diffstat (limited to 'src/JSystem/J2DGraph/J2DTextBox.cpp')
| -rw-r--r-- | src/JSystem/J2DGraph/J2DTextBox.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/JSystem/J2DGraph/J2DTextBox.cpp b/src/JSystem/J2DGraph/J2DTextBox.cpp index ea8db23f..cd17b990 100644 --- a/src/JSystem/J2DGraph/J2DTextBox.cpp +++ b/src/JSystem/J2DGraph/J2DTextBox.cpp @@ -190,9 +190,8 @@ void J2DTextBox::drawSelf(f32 x, f32 y, Mtx* pMtx) { MTXConcat(*pMtx, mDrawMtx, mtx); GXLoadPosMtxImm(mtx, 0); print.locate(x, y); - f32 w = mBounds.f.x - mBounds.i.x + 0.0001f; - f32 h = mBounds.f.y - mBounds.i.y; - print.printReturn(mStringPtr, w, h, (J2DTextBoxHBinding)mBindingH, (J2DTextBoxVBinding)mBindingV, field_0xd8, field_0xdc, mDrawAlpha); + print.printReturn(mStringPtr, mBounds.getWidth() + 0.0001f, mBounds.getHeight(), + (J2DTextBoxHBinding)mBindingH, (J2DTextBoxVBinding)mBindingV, field_0xd8, field_0xdc, mDrawAlpha); } /* 802D5DA4-802D5EB0 .text resize__10J2DTextBoxFff */ |
