pointing the sprite at the cursor coords

Hello! I have a textured quad on the screen at 100,100, how can I rotate it to make it point at the cursor? I have cursor coords in m_mousex and m_mousey. Please, help!

This is not opengl, this is maths.