2 Este programa fabrica la grilla en un bmp
23 int card
= GFX_AUTODETECT
, w
= 640 ,h
= 480 ,color_depth
= 8; /* agregado por Kronoman */
30 set_color_depth(color_depth
);
31 if (set_gfx_mode(card
, w
, h
, 0, 0)) {
32 allegro_message("set_gfx_mode(%d x %d x %d bpp): %s\n", w
,h
, color_depth
, allegro_error
);
36 set_palette(default_palette
);
40 bmp
= create_bitmap(W_FONDO
, H_FONDO
);
43 for (ix
=0; ix
< W_FONDO
/ W_GR
; ix
++ )
44 line(bmp
, ix
*W_GR
, 0, ix
*W_GR
, H_FONDO
, makecol(255,255,255));
46 for (iy
=0; iy
< H_FONDO
/ H_GR
; iy
++ )
47 line(bmp
, 0, iy
*H_GR
, W_FONDO
, iy
*H_GR
, makecol(255,255,255));
50 save_bitmap("grilla.pcx", bmp
, pal
);