www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/16/20:50:25

From: Nicolas Blais <eletech AT netrover DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: HELP!!![Allegro] Datafile problem!!!
Date: Mon, 15 Jun 1998 17:49:41 -0400
Organization: Elemental Technologies
Lines: 21
Message-ID: <358596F4.A5F6088C@netrover.com>
NNTP-Posting-Host: 198.168.87.45
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi, thanks for helping, with your help I was able to fix the midi and
font
problem, but the bitmap problem still arises.  I tried what you told me
to
do but I can do so because show_centered_bmp is a call to a function I
made.  I guess I have to modify something in my function, I tried
putting
(BITMAP *) everywhere but no success.  Can you help one last time?

void show_centered_bmp(char filename[20],int y)
     {
     BITMAP* bmp;
     PALETTE pal;
     bmp = load_bmp(filename,pal);
     masked_blit(bmp,screen,0,0,(SCREEN_W-bmp->w)/2,y,bmp->w,bmp->h);
     destroy_bitmap(bmp);
      }
show_centered_bmp(datafile[Title_Main].dat, 100);

Thanks, Nicolas Blais

- Raw text -


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