File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ video::SColor GUIEditBoxWithScrollBar::getOverrideColor() const
131
131
// ! Turns the border on or off
132
132
void GUIEditBoxWithScrollBar::setDrawBorder (bool border)
133
133
{
134
- border = border;
134
+ m_border = border;
135
135
}
136
136
137
137
// ! Sets whether to draw the background
@@ -257,7 +257,7 @@ bool GUIEditBoxWithScrollBar::processKey(const SEvent& event)
257
257
if (!m_writable) {
258
258
return false ;
259
259
}
260
-
260
+
261
261
if (!event.KeyInput .PressedDown )
262
262
return false ;
263
263
@@ -791,7 +791,7 @@ void GUIEditBoxWithScrollBar::draw()
791
791
} else {
792
792
mend = font->getDimension (txt_line->c_str ()).Width ;
793
793
}
794
-
794
+
795
795
796
796
m_current_text_rect.UpperLeftCorner .X += mbegin;
797
797
m_current_text_rect.LowerRightCorner .X = m_current_text_rect.UpperLeftCorner .X + mend - mbegin;
@@ -1041,7 +1041,7 @@ void GUIEditBoxWithScrollBar::breakText()
1041
1041
bool line_break = false ;
1042
1042
1043
1043
if (c == L' \r ' ) { // Mac or Windows breaks
1044
-
1044
+
1045
1045
line_break = true ;
1046
1046
c = 0 ;
1047
1047
if (Text[i + 1 ] == L' \n ' ) { // Windows breaks
@@ -1433,7 +1433,7 @@ void GUIEditBoxWithScrollBar::updateVScrollBar()
1433
1433
}
1434
1434
1435
1435
// check if a vertical scrollbar is needed ?
1436
- if (getTextDimension ().Height > m_frame_rect.getHeight ()) {
1436
+ if (getTextDimension ().Height > (u32) m_frame_rect.getHeight ()) {
1437
1437
m_frame_rect.LowerRightCorner .X -= m_scrollbar_width;
1438
1438
1439
1439
s32 scrollymax = getTextDimension ().Height - m_frame_rect.getHeight ();
Original file line number Diff line number Diff line change @@ -1517,7 +1517,7 @@ void intlGUIEditBox::updateVScrollBar()
1517
1517
}
1518
1518
1519
1519
// check if a vertical scrollbar is needed ?
1520
- if (getTextDimension ().Height > FrameRect.getHeight ()) {
1520
+ if (getTextDimension ().Height > (u32) FrameRect.getHeight ()) {
1521
1521
s32 scrollymax = getTextDimension ().Height - FrameRect.getHeight ();
1522
1522
if (scrollymax != m_vscrollbar->getMax ()) {
1523
1523
m_vscrollbar->setMax (scrollymax);
You can’t perform that action at this time.
0 commit comments