Skip to content

Commit 1ff5c20

Browse files
committedOct 10, 2017
Fix warnings introduced by 9b8fa99
1 parent 32ae492 commit 1ff5c20

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

Diff for: ‎src/guiEditBoxWithScrollbar.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ video::SColor GUIEditBoxWithScrollBar::getOverrideColor() const
131131
//! Turns the border on or off
132132
void GUIEditBoxWithScrollBar::setDrawBorder(bool border)
133133
{
134-
border = border;
134+
m_border = border;
135135
}
136136

137137
//! Sets whether to draw the background
@@ -257,7 +257,7 @@ bool GUIEditBoxWithScrollBar::processKey(const SEvent& event)
257257
if (!m_writable) {
258258
return false;
259259
}
260-
260+
261261
if (!event.KeyInput.PressedDown)
262262
return false;
263263

@@ -791,7 +791,7 @@ void GUIEditBoxWithScrollBar::draw()
791791
} else {
792792
mend = font->getDimension(txt_line->c_str()).Width;
793793
}
794-
794+
795795

796796
m_current_text_rect.UpperLeftCorner.X += mbegin;
797797
m_current_text_rect.LowerRightCorner.X = m_current_text_rect.UpperLeftCorner.X + mend - mbegin;
@@ -1041,7 +1041,7 @@ void GUIEditBoxWithScrollBar::breakText()
10411041
bool line_break = false;
10421042

10431043
if (c == L'\r') { // Mac or Windows breaks
1044-
1044+
10451045
line_break = true;
10461046
c = 0;
10471047
if (Text[i + 1] == L'\n') { // Windows breaks
@@ -1433,7 +1433,7 @@ void GUIEditBoxWithScrollBar::updateVScrollBar()
14331433
}
14341434

14351435
// check if a vertical scrollbar is needed ?
1436-
if (getTextDimension().Height > m_frame_rect.getHeight()) {
1436+
if (getTextDimension().Height > (u32) m_frame_rect.getHeight()) {
14371437
m_frame_rect.LowerRightCorner.X -= m_scrollbar_width;
14381438

14391439
s32 scrollymax = getTextDimension().Height - m_frame_rect.getHeight();

Diff for: ‎src/intlGUIEditBox.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ void intlGUIEditBox::updateVScrollBar()
15171517
}
15181518

15191519
// check if a vertical scrollbar is needed ?
1520-
if (getTextDimension().Height > FrameRect.getHeight()) {
1520+
if (getTextDimension().Height > (u32) FrameRect.getHeight()) {
15211521
s32 scrollymax = getTextDimension().Height - FrameRect.getHeight();
15221522
if (scrollymax != m_vscrollbar->getMax()) {
15231523
m_vscrollbar->setMax(scrollymax);

0 commit comments

Comments
 (0)
Please sign in to comment.