BMAP* screen_map = "emptypanel.pcx";
PANEL * testpan ={
pos_x = 100;
pos_y = 100;
button = (0,0,screen_map, screen_map, screen_map, NULL,NULL,NULL);
window = (0,0,400,300,screen_map, 0,0);
flags = SHOW;
}
function grab_screen(BMAP* Bmap, var modify, var delay, STRING* Save_settings){
bmap_for_screen (Bmap, modify, delay);
wait (1); // wait 1 frame until the bitmap can be saved
game_save ("savegame", 0, Save_settings);
}
on_q = grab_screen(screen_map, 1, 1, "SV_VARS + SV_BMAPS");
function grab_screen2(){
bmap_for_screen (screen_map, 1, 1);
wait (1); // wait 1 frame until the bitmap can be saved
game_save ("savegame", 0, SV_VARS + SV_BMAPS);
}
on_z = grab_screen2;