]> git.armaanb.net Git - st.git/commitdiff
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)
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>

No differences found