
Copy-paste all the drawing functions from x.c to draw.c. In the spirit of making changes easily traceable the minimal amount of changes required to make the functions work was made. Further improvement (like removing the cairo-xlib dependency) will be done in later commits.