www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/02/21:40:40

From: "DeHackEd" <notgiven AT out DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <7e3l97$bol$1 AT platane DOT wanadoo DOT fr>
Subject: Re: probelem with ALLEGRO BITMAP in a typedef structure
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID: <FDeN2.569$e4.116@cabot.ops.attcanada.net>
Date: Sat, 03 Apr 1999 02:01:09 GMT
NNTP-Posting-Host: 142.194.222.53
X-Trace: cabot.ops.attcanada.net 923104869 142.194.222.53 (Sat, 03 Apr 1999 02:01:09 GMT)
NNTP-Posting-Date: Sat, 03 Apr 1999 02:01:09 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> blit("a pic", car.sprite_def,0,0,0,64,64);
Are you acutally using this?!? Blit does not take strings, it takes pointers to
bitmaps that have already been loaded in. You can load them using
load_bitmap(char*, PALETTE);

> blit(car.sprite_def, screen,0,0,100,100,64,64);

I don't know what bitmap data blit received from "a pic", but that is the best
source of your problem.


--
"DeHackEd"

My Email address in the header is fake (spammers). Email me at this address:

http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked


- Raw text -


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