Mail Archives: djgpp/1997/04/07/19:32:54
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 -