delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/16/02:01:00

From: Elton Fry <elton AT iafrica DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Is this Ok?
Date: Fri, 16 Jan 1998 08:56:40 -0800
Organization: UUNET Internet Africa
Lines: 14
Message-ID: <34BF9148.4A05@iafrica.com>
NNTP-Posting-Host: 196-31-98-169.iafrica.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In Allegro(v3), is this code ok for redefining a bitmap?

...
BITMAP *b=create_bitmap(x1,y1); //Size doesn't matter
...
...
destroy_bitmap(b);  //kill it
BITMAP *b=create_bitmap(x2,y2);  //Any size
...

Does this de-allocate memory then re-allocate it proberly?
Thanks
Elton Fry

- Raw text -


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