first, this one:
vec_set(mouse_pos,mouse_cursor);

and not:
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;

It's the same, but more professional XD

And to your problem:

try it without this scale-, center- and alpha-things. So you can be sure, where the fault is.


Hilf mir, dir zu helfen!