Move win-agnostic parts of draw/drawregion to st.c
authorDevin J. Pohly <djpohly@gmail.com>
Sat, 24 Feb 2018 20:53:23 +0000 (14:53 -0600)
committerDevin J. Pohly <djpohly@gmail.com>
Mon, 26 Feb 2018 03:56:26 +0000 (21:56 -0600)
commit88d8293fb4ba150a5f19d58d133b5db93d9dcfa5
treef9e3cce2feda5565049c5d99012e8bd84144b8a2
parent05c66cb37d9ff278a3e0c45682c4b5e7945deb42
Move win-agnostic parts of draw/drawregion to st.c

Introduces three functions to encapsulate X-specific behavior:
 * xdrawline: draws a portion of a single line (used by drawregion)
 * xbegindraw: called to prepare for drawing (will be useful for e.g.
   Wayland) and returns true if drawing should happen
 * xfinishdraw: called to finish drawing (used by draw)

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