I changed it to this, as you said:
But now it hangs up when I try to compile it:P guess its not my day:P

#include <acknex.h>
#include <default.c>

BMAP* mouse_bmap = "mouse.bmp";
BMAP* background = "second.bmp";
BMAP* gras = "gress.bmp";

PANEL* new_background =
{
pos_x = 0;
pos_y = 0;
bmap = background;
layer = 1;
flags = VISIBLE;
}

PANEL* new_ground =
{
pos_x = 0;
pos_y = 0;
bmap = gras;
button (10, 10, "button_clicked.bmp", "button_unpressed.bmp", "button_pressed.bmp", quit_program, NULL, NULL);
layer = 2;
flags = OVERLAY | VISIBLE;
}

function quit_program()
{
sys_exit (NULL);
}

function main ()
{
video_mode = 7;
screen_color.blue = 150;
mouse_mode = 2;
mouse_map = mouse_bmap;
while (1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
}

}

though, if I take away the while (1) { mouse_pos.x ....... mouse_cursor.y;} it works fine, but I can't move the mouse inside the game:P:P

may there be an issue with vista32?

Last edited by Harstad; 01/12/09 17:14.