delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/19:32:54

Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: admcs AT megsinet DOT net (Paul Schmidt)
Subject: Can't get this to work (Allegro)
Date: Mon, 7 Apr 1997 18:13:04 -0500
Message-ID: <19970407231303409.AAA166@ns1.megsinet.net>

Could someone please tell me how I could get this to open notecard.pcx and
display it (centered) on the mode 13h screen?

Thanks in advance,
Paul Schmidt

#include <stdio.h>
#include <allegro.h>

int main()
{
        BITMAP *card;
        PALETTE p;
        allegro_init();
        get_palette(p);
        card = create_bitmap(200, 120);
        set_gfx_mode(GFX_VGA, 320, 200, 0, 0);
        card = load_pcx("notecard.pcx", p);
        blit(card, screen, 0, 0, 20, 20, 200, 120);
        getch();
        return 0;
}
Paul Schmidt
ADM Computer Services
admcs AT megsinet DOT net



 ^---http://krypton.mankato.msus.edu/~hayden/geek.html to decode

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019