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 42d48af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/gui/guiChatConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ 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;


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 42d48af

Please sign in to comment.