//! Turns the border on or off
void GUIEditBoxWithScrollBar::setDrawBorder(bool border)
{
- border = border;
+ m_border = border;
}
//! Sets whether to draw the background
if (!m_writable) {
return false;
}
-
+
if (!event.KeyInput.PressedDown)
return false;
} else {
mend = font->getDimension(txt_line->c_str()).Width;
}
-
+
m_current_text_rect.UpperLeftCorner.X += mbegin;
m_current_text_rect.LowerRightCorner.X = m_current_text_rect.UpperLeftCorner.X + mend - mbegin;
bool line_break = false;
if (c == L'\r') { // Mac or Windows breaks
-
+
line_break = true;
c = 0;
if (Text[i + 1] == L'\n') { // Windows breaks
}
// check if a vertical scrollbar is needed ?
- if (getTextDimension().Height > m_frame_rect.getHeight()) {
+ if (getTextDimension().Height > (u32) m_frame_rect.getHeight()) {
m_frame_rect.LowerRightCorner.X -= m_scrollbar_width;
s32 scrollymax = getTextDimension().Height - m_frame_rect.getHeight();
}
// check if a vertical scrollbar is needed ?
- if (getTextDimension().Height > FrameRect.getHeight()) {
+ if (getTextDimension().Height > (u32) FrameRect.getHeight()) {
s32 scrollymax = getTextDimension().Height - FrameRect.getHeight();
if (scrollymax != m_vscrollbar->getMax()) {
m_vscrollbar->setMax(scrollymax);