diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2023-09-04 06:41:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-04 16:41:08 +0300 |
| commit | d98444fe4e3694fb7d4670a37a2d5b9f1af52e28 (patch) | |
| tree | cfcc7714688a38ec0b468117c508f163f6345cf3 /libs/JSystem/J2DGraph/J2DTextBox.cpp | |
| parent | a6d49a9901b1da5d9880b8c73889110638203a0c (diff) | |
J2DWindow (#1910)
Diffstat (limited to 'libs/JSystem/J2DGraph/J2DTextBox.cpp')
| -rw-r--r-- | libs/JSystem/J2DGraph/J2DTextBox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/JSystem/J2DGraph/J2DTextBox.cpp b/libs/JSystem/J2DGraph/J2DTextBox.cpp index 184b319157..e8f4c042c9 100644 --- a/libs/JSystem/J2DGraph/J2DTextBox.cpp +++ b/libs/JSystem/J2DGraph/J2DTextBox.cpp @@ -410,7 +410,7 @@ bool J2DTextBox::setConnectParent(bool connected) { return false; } - if ((u16)getPaneTree()->getParent()->getObject()->getTypeID() != 0x11) { + if (getPaneTree()->getParent()->getObject()->getTypeID() != 0x11) { return false; } @@ -456,7 +456,7 @@ void J2DTextBox::resize(f32 x, f32 y) { if (mConnected && getPaneTree() != NULL && getPaneTree()->getParent() != NULL) { J2DPane* obj = getPaneTree()->getParent()->getObject(); - if ((u16)obj->getTypeID() == 0x11) { + if (obj->getTypeID() == 0x11) { f32 obj_x = obj->getWidth() + (x - getWidth()); f32 obj_y = obj->getHeight() + (y - getHeight()); obj->resize(obj_x, obj_y); @@ -477,7 +477,7 @@ bool J2DTextBox::isUsed(ResFONT const* p_font) { } /* 80300C68-80300C70 2FB5A8 0008+00 1/0 1/0 0/0 .text getTypeID__10J2DTextBoxCFv */ -s32 J2DTextBox::getTypeID() const { +u16 J2DTextBox::getTypeID() const { return 19; } |
