From: Eric B. <ebo...@li...> - 2000-12-22 23:28:56
|
With the following code: <------------------------------------------------------------> #include <allegro.h> /* to reduce executable size */ BEGIN_COLOR_DEPTH_LIST COLOR_DEPTH_8 END_COLOR_DEPTH_LIST BEGIN_GFX_DRIVER_LIST GFX_DRIVER_VGA END_GFX_DRIVER_LIST BEGIN_DIGI_DRIVER_LIST END_DIGI_DRIVER_LIST BEGIN_MIDI_DRIVER_LIST END_MIDI_DRIVER_LIST BEGIN_JOYSTICK_DRIVER_LIST END_JOYSTICK_DRIVER_LIST int main( int argc, char *argv[] ) { allegro_init(); install_timer(); install_keyboard(); install_mouse(); set_gfx_mode( GFX_VGA, 320, 200, 0, 0 ); readkey(); } <--------------------------------------------------------> compiled by gcc -s -O2 -o simple.exe simple.c -lalleg, I've got 306 kb. -- Eric Botcazou (ebo...@mu...) Web Site: http://www.multimania.com/ebotcazou |