Skip to content

Commit

Permalink
remove trailing whitespace and debug NOP-instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
chmodsayshello committed Sep 1, 2024
1 parent a13fc88 commit 3b3b1c7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/gui/guiChatConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void GUIChatConsole::reformatConsole()
m_scrollbar->setRelativePosition(core::rect<s32> (m_screensize.X - 32, 0, m_screensize.X, m_height));
m_scrollbar->setPageSize(m_fontsize.Y * m_chat_backend->getConsoleBuffer().getLineCount());
}

recalculateConsolePosition();
m_chat_backend->reformat(cols, rows);
}
Expand Down Expand Up @@ -359,9 +359,9 @@ void GUIChatConsole::drawText()
// leave 4 pixels of space between scrollbar and text
rect = core::rect<s32> (0, 0, m_screensize.X - 32 - 4, m_height);
m_scrollbar->setPos(buf.getScrollPosition());
} else
} else
rect = AbsoluteClippingRect;


if (m_font->getType() == irr::gui::EGFT_CUSTOM) {
// Draw colored text if possible
Expand Down Expand Up @@ -736,10 +736,6 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
m_chat_backend->getConsoleBuffer().scrollAbsolute(m_scrollbar->getPos());
}

if (event.EventType == EET_GUI_EVENT && event.GUIEvent.EventType != EGET_ELEMENT_HOVERED && event.GUIEvent.EventType != EGET_ELEMENT_LEFT) {
asm("nop");
}

return Parent ? Parent->OnEvent(event) : false;
}

Expand Down

0 comments on commit 3b3b1c7

Please sign in to comment.