Fixed bug in drawing (x>=0 and y>=0 was not tested => possible SEGFAULT), from Manuel Guenther @ b600be99a