All pastes #964213 Raw Edit

Mine

public text v1 · immutable
#964213 ·published 2008-03-31 02:18 UTC
rendered paste body
#include <allegro.h>

BITMAP* sonelec;

int main(){
    allegro_init();
    install_keyboard();
    set_color_depth(16);
    set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
    sonelec = load_bitmap( "sonelec.bmp", NULL);
    
    acquire_screen();
    
    draw_sprite ( screen, sonelec, 220, 20);
    textout_ex( screen, font, "Sonic Electronic!", 220, 400, makecol( 255, 0, 0), makecol( 0, 0, 0) );
    
    release_screen();
    
    readkey();
}