summaryrefslogtreecommitdiff
path: root/src/d/lyt/d_textbox.cpp
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-06-30 23:46:11 +0200
committerrobojumper <robojumper@gmail.com>2025-06-30 23:52:49 +0200
commit15be3bf8e892252023952e26ed5316fc723477a2 (patch)
treeb4339c950d510aa65f62c345cea43abd02e41be0 /src/d/lyt/d_textbox.cpp
parentac1da51c33ef1ffa664b79a2ff90367d6cab0530 (diff)
HIO-ify names of likely HIO-related classes
Diffstat (limited to 'src/d/lyt/d_textbox.cpp')
-rw-r--r--src/d/lyt/d_textbox.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/d/lyt/d_textbox.cpp b/src/d/lyt/d_textbox.cpp
index 950d2a63..cb5e5130 100644
--- a/src/d/lyt/d_textbox.cpp
+++ b/src/d/lyt/d_textbox.cpp
@@ -4,7 +4,7 @@
#include "d/d_font_manager.h"
#include "d/d_message.h"
#include "d/d_tag_processor.h"
-#include "d/d_textunk.h"
+#include "d/d_lyt_hio.h"
#include "d/lyt/msg_window/d_lyt_msg_window.h"
#include "libms/msgfile.h"
#include "m/m_color.h"
@@ -405,7 +405,7 @@ f32 dTextBox_c::GetLinesHeight() const {
f32 assumedDefaultSize = 35.0f;
- f32 f3 = UnkTextThing::getFn800B1F70();
+ f32 f3 = dLyt_HIO_c::getFn800B1F70();
nw4r::lyt::Size size = mMyFontSize;
int fontHeight = f->GetHeight();
f3 *= (size.height / assumedDefaultSize) * fontHeight;
@@ -493,7 +493,7 @@ void dTextBox_c::init() {
}
nw4r::lyt::Size sz = GetFontSize();
- f32 scale = UnkTextThing::getFn800B1F70();
+ f32 scale = dLyt_HIO_c::getFn800B1F70();
f32 height = sz.height / f1;
sz.width = GetFont()->GetWidth() * height * scale;
@@ -625,11 +625,11 @@ void dTextBox_c::DrawSelf(const nw4r::lyt::DrawInfo &drawInfo) {
unk1 = field_0x1F8 == 1;
}
if (field_0x1F7 == 1 || (field_0x1F7 == 2 && unk1)) {
- f32 f = GetFontSize().height * UnkTextThing::getField0x75C();
+ f32 f = GetFontSize().height * dLyt_HIO_c::getField0x75C();
textRect.top -= f;
textRect.bottom -= f;
} else if (field_0x1F7 == 3 && unk1) {
- f32 f = GetFontSize().height * UnkTextThing::getField0x760();
+ f32 f = GetFontSize().height * dLyt_HIO_c::getField0x760();
textRect.top -= f;
textRect.bottom -= f;
}