Why can't I get a mouse in full screen with this code?

function main()
{
video_mode = 8;
mouse_map=max_head;
mouse_mode=2;
while (mouse_mode > 0)
{
vec_set(mouse_pos, mouse_cursor);
wait(1);
}
...
}