ide: Line numbers cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@7902 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-11-16 08:03:59 +00:00
parent e0a06c92f0
commit a35a87737f

View file

@ -94,7 +94,7 @@ void EditorBar::Paint(Draw& w)
if(line_numbers && i < editor->GetLineCount()) {
String n = AsString(i + 1);
for(int q = 0; q < 4 && q < n.GetLength(); q++) {
w.DrawImage(sz.cx - 8 - q * 6,
w.DrawImage(sz.cx - 8 - q * 6 - 12,
y + (fy - CodeEditorImg::N0().GetSize().cy) / 2,
numeri[n[n.GetLength() - 1 - q] - '0'],
// CodeEditorImg::Vector[n[n.GetLength() - 1 - q] - '0' + CodeEditorImg::I_N0],
@ -484,7 +484,7 @@ void EditorBar::HidePtr()
void EditorBar::SyncWidth()
{
Width((line_numbers ? 27 : 12) + annotations);
Width((line_numbers ? 27 + 12 : 12) + annotations);
Refresh();
}