From d98444fe4e3694fb7d4670a37a2d5b9f1af52e28 Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Mon, 4 Sep 2023 06:41:08 -0700 Subject: J2DWindow (#1910) --- libs/JSystem/J2DGraph/J2DTextBox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/JSystem/J2DGraph/J2DTextBox.cpp') 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; } -- cgit v1.2.3