Mail Archives: djgpp/1999/01/08/21:05:26
From: | sowelu AT my-dejanews DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro: Help! Draw_Sprite doesn't like me!
|
Date: | Sat, 09 Jan 1999 01:46:54 GMT
|
Organization: | Deja News - The Leader in Internet Discussion
|
Lines: | 27
|
Message-ID: | <776ced$89s$1@nnrp1.dejanews.com>
|
NNTP-Posting-Host: | 209.63.113.104
|
X-Article-Creation-Date: | Sat Jan 09 01:25:09 1999 GMT
|
X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
|
X-Http-Proxy: | 1.0 CYRANO, 1.0 x3.dejanews.com:80 (Squid/1.1.22) for client 209.63.113.104
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
First off: I don't like DejaNews, so if you reply to this, please be kind
enough to send it in an email to: lupinecub at hotmail dot com (yes, we all
hate spam.)
For some reason, any time I make any sort of attempt whatsoever at
draw_sprite or blit, Allegro decides it doesn't like it, and that it wants to
sigsegv. So I declare 'BITMAP *sprite_buffer', set color and graphics modes
(8 bits, VESA1, 640x480), create_bitmap into my sprite_buffer, then
draw_sprite from my datafile to that. If the bug is anything easily findable,
it's probably in this:
draw_sprite (sprite_buffer, datafile[BLUDGEONTITLE].dat, 0, 0);
This is where it crashes. However, if I blit it directly to the screen with
blit (datafile[BLUDGEONTITLE].dat, screen, 0, 0, 64, 64, 512, 256);
it doesn't work either. In fact, it does the exact same thing, a sigsegv.
Grabber reports the size as being 512x256, which is what it should be; it
displays just fine with my 8-bit palette in Grabber, so I'm assuming
(hopefully not incorrectly) that the bug isn't in the graphic... If this
isn't enough information, please, PLEASE email me (that's at lupinecub at
hotmail dot com) and I'll send you the revelant stuff. Of course, if you have
a quick easy solution, send that too. I'm totally lost here...
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
- Raw text -