removed useless cursor init. and renamed xcursor() to xdrawcursor().