www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/24/16:26:58

From: "Atte Koivula" <keijo DOT koivula AT pp DOT inet DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Problem loading PCX-file using Allegro
Date: 24 Apr 1997 16:57:34 GMT
Organization: Telecom Finland News Service
Lines: 20
Message-ID: <01bc4f39$c2ea5ac0$3b86d2c1@ojzxnyqp>
NNTP-Posting-Host: user-510-114.dial.inet.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Why does this cause a page fault (I'm simply trying to load and blit a
pcx-file called dice.pcx...):

#include <allegro.h>

void main()
{
 allegro_init();
 BITMAP *dice;
 PALETTE dicepalette;
 dice=load_bitmap("c:/djgpp/atte/progs/dice.pcx", dicepalette);
 set_gfx_mode(GFX_MODEX,320,200,0,0);
 set_palette(dicepalette);
 blit(dice,screen,0,0,0,0,dice->w,dice->h);
 destroy_bitmap(dice);
}

Please help me! You can e-mail to: keijo DOT koivula AT pp DOT inet DOT fi  or
akoivula AT geocities DOT com or this group (figures)

- Raw text -


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