Browse Source

Merge pull request #176 from caktux/develop

neth: fix framebuffer newlines
cl-refactor
Gav Wood 11 years ago
parent
commit
26e9b1d251
  1. 4
      neth/main.cpp

4
neth/main.cpp

@ -240,13 +240,15 @@ int nc_window_streambuf::overflow(int c)
int my = 0; int my = 0;
getyx(m_pnl, y, x); getyx(m_pnl, y, x);
getmaxyx(m_pnl, my, mx); getmaxyx(m_pnl, my, mx);
(void)my;
if (y < 1) if (y < 1)
y = 1; y = 1;
if (x < 2) if (x < 2)
x = 2; x = 2;
if (x > mx - 4) if (x > mx - 4)
{ {
if (y + 1 >= my)
scroll(m_pnl);
else
y++; y++;
x = 2; x = 2;
} }

Loading…
Cancel
Save