www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/20/23:33:13

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Accessing Allegro Datafile Properties
Date: Fri, 20 Mar 1998 22:08:17 +0000
Organization: None
Message-ID: <yr9$+EARjuE1EwJ4@talula.demon.co.uk>
References: <01bd5369$37a566a0$LocalHost AT default>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Rylan writes:
>What I want to do is to read the "XSIZ" and "YSIZ" properties for a 
>datafile object so that I can use these values as integers in the code 
>that will handle that particular datafile object.

Why not just look up the w and h fields in the bitmap or sprite object?

If you do need to use the property strings, it is as simple as calling
the function:

    get_datafile_property(&datafile[index], DAT_ID('X','S','I','Z'));


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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