Browse Source

Merge pull request #176 from caktux/develop

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

6
neth/main.cpp

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

Loading…
Cancel
Save