xgraphics.c: Graphics routines

<#421#>code/xgraphics.c.tex<#421#>