Which is faster?
or
I would have thought it was the second one, but I can't tell the difference when I run my app, so I thought I'd ask.
(The idea, obviously, is to force the mouse cursor image to snap to a grid. Is there an even faster way to do it?)
Thanks in advance for any helpful replies! :)
mx=MouseX() Mod 5 my=MouseY() Mod 5 DrawImage CursorImage,MouseX()-mx,MouseY()-my
or
DrawImage CursorImage,MouseX()-(MouseX() Mod 5),MouseY()-(MouseY() Mod 5)
I would have thought it was the second one, but I can't tell the difference when I run my app, so I thought I'd ask.
(The idea, obviously, is to force the mouse cursor image to snap to a grid. Is there an even faster way to do it?)
Thanks in advance for any helpful replies! :)