X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgui%2FguiEditBoxWithScrollbar.cpp;h=44240668864357cda66a065f20d7ae7544bd20ae;hb=3a718f12b433ef3980c8fc6e29957595110cd8f4;hp=2f909f54f64fbafc08dcfb3c355e7317e27343be;hpb=115ef6c09c640598695d5d506a7a8e1ab928174b;p=dragonfireclient.git diff --git a/src/gui/guiEditBoxWithScrollbar.cpp b/src/gui/guiEditBoxWithScrollbar.cpp index 2f909f54f..442406688 100644 --- a/src/gui/guiEditBoxWithScrollbar.cpp +++ b/src/gui/guiEditBoxWithScrollbar.cpp @@ -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)