remove #undefs in drawing.c