delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/17/13:31:27

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Q]: What is with the SIGSEGVs?
Date: Mon, 13 Oct 1997 19:06:47 +0100
Organization: None
Distribution: world
Message-ID: <cDQ0kDA3MmQ0EwLV@talula.demon.co.uk>
References: <60v6kp$20d$1 AT sol DOT pdnt DOT net>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

news.champaign.pdnt.com writes:
> allegro_init();
> text_spot1 = create_sub_bitmap(screen, 1, 1, 15, 7);
> text_spot2 = create_sub_bitmap(screen, 185, 1, 15, 7);
[snip...]
> set_gfx_mode(GFX_VGA, 320, 200, 0, 0);

Nooo! You can't create your sub bitmaps before setting the graphics
mode, because the "screen" parameter hasn't been initialised yet...

btw. it is generally not a good idea to post binary attached files to
usenet groups: many people don't like it, and won't bother reading them. 


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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