]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/gui/guiEditBoxWithScrollbar.cpp
Revert "Add Block Formspec Hack"
[dragonfireclient.git] / src / gui / guiEditBoxWithScrollbar.cpp
index b7192b37ba5e3fcd376944c77f33c0a9b2a762b8..44240668864357cda66a065f20d7ae7544bd20ae 100644 (file)
@@ -1109,10 +1109,13 @@ void GUIEditBoxWithScrollBar::breakText()
        m_broken_text_positions.push_back(last_line_start);
 }
 
-// TODO: that function does interpret VAlign according to line-index (indexed line is placed on top-center-bottom)
-// but HAlign according to line-width (pixels) and not by row.
-// Intuitively I suppose HAlign handling is better as VScrollPos should handle the line-scrolling.
-// But please no one change this without also rewriting (and this time fucking testing!!!) autoscrolling (I noticed this when fixing the old autoscrolling).
+// TODO: that function does interpret VAlign according to line-index (indexed
+// line is placed on top-center-bottom) but HAlign according to line-width
+// (pixels) and not by row.
+// Intuitively I suppose HAlign handling is better as VScrollPos should handle
+// the line-scrolling.
+// But please no one change this without also rewriting (and this time
+// testing!!!) autoscrolling (I noticed this when fixing the old autoscrolling).
 void GUIEditBoxWithScrollBar::setTextRect(s32 line)
 {
        if (line < 0)
@@ -1400,7 +1403,7 @@ void GUIEditBoxWithScrollBar::createVScrollBar()
 
        irr::core::rect<s32> scrollbarrect = m_frame_rect;
        scrollbarrect.UpperLeftCorner.X += m_frame_rect.getWidth() - m_scrollbar_width;
-       m_vscrollbar = new guiScrollBar(Environment, getParent(), -1,
+       m_vscrollbar = new GUIScrollBar(Environment, getParent(), -1,
                        scrollbarrect, false, true);
 
        m_vscrollbar->setVisible(false);