From: Devin J. Pohly Date: Sat, 24 Feb 2018 20:53:23 +0000 (-0600) Subject: Move win-agnostic parts of draw/drawregion to st.c X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=88d8293fb4ba150a5f19d58d133b5db93d9dcfa5;hp=88d8293fb4ba150a5f19d58d133b5db93d9dcfa5;p=st.git 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 ---