Looks like your coordinate-system is "inverted"
easy test
replace x -> Xsize - x
replace y -> Ysize - y
so drawpoint(x,y,1) => drawpoint(320-x, 200-y, 1) // assuming a 320x200 screen
get the idea?
Looks like your coordinate-system is "inverted"
easy test
replace x -> Xsize - x
replace y -> Ysize - y
so drawpoint(x,y,1) => drawpoint(320-x, 200-y, 1) // assuming a 320x200 screen
get the idea?