Remove x.c dependency on term
authorDevin J. Pohly <djpohly@gmail.com>
Sat, 24 Feb 2018 21:32:48 +0000 (15:32 -0600)
committerDevin J. Pohly <djpohly@gmail.com>
Mon, 26 Feb 2018 03:56:26 +0000 (21:56 -0600)
commita3beb626d2dae9d4d0883c7c8cb6ba58b0609105
tree2b375342df7c33c98ab070ee38b40bbb0da4acf1
parenta5dc1b46976b2252f9d7bb68f126c4b0f351dd1a
Remove x.c dependency on term

The xinit function only needs to the rows/cols, so pass those in rather
than accessing term directly.  With a bit of arithmetic, we are able to
avoid the need for term.row and term.col in x2col, y2row, and
xdrawglyphfontspecs as well, completing the removal.

Term is now fully internal to st.c.

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
st.c
st.h
x.c