Use a common constant for msg window character buffer size

This commit is contained in:
robojumper
2025-11-22 22:24:38 +01:00
parent 54fc6c4a58
commit ab83c7628f
6 changed files with 22 additions and 21 deletions
+2 -2
View File
@@ -70,14 +70,14 @@ bool TextWindowUnk::checkEndReached() const {
}
void MsgWindowBlurRelated::build() {
for (int i = 0; i < 1023; i++) {
for (int i = 0; i < TextWindowUnk::BUF_SIZE; i++) {
mData[i].reset();
}
}
void MsgWindowBlurRelated::drawTextBlur(dLytTextLight *thing, mVec2_c size, u8 alpha) {
s8 t = -1;
for (int i = 0; i < 1023; i++) {
for (int i = 0; i < TextWindowUnk::BUF_SIZE; i++) {
if (mData[i].displayTimerMaybe >= 0) {
if (t == -1) {
mData[i].displayTimerMaybe++;