From: jhierro AT cti DOT csic DOT es (Joaquin Hierro Diaz) Newsgroups: comp.os.msdos.djgpp Subject: Re: Accessing fields in structs in Allegro datafiles Date: Fri, 18 Apr 1997 08:05:09 GMT Organization: CTI - CSIC Lines: 37 Message-ID: <33572aa1.4735048@news.csic.es> References: <5j61br$i8q AT kew DOT globalnet DOT co DOT uk> NNTP-Posting-Host: jhierro.cti.csic.es To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 17 Apr 1997 20:32:10 GMT, flend AT globalnet DOT co DOT uk (The Flend) wrote: >I am having some trouble with accessing the height of an rle_encoded sprite, >stored in Allegro 2.1 datafile. > >The datafile is: dataf_rle > >I've tried: > >(dataf_rle[spr_no].dat)->h > I don't have my code at hand, but (BITMAP)dataf_rle[spr_no].dat->h or ((BITMAP)dataf_rle[spr_no].dat)->h or something similar worked fine for me. Well, with allegro 2.2, but I don't think it would be very important. ----8<--------------------------------------------------------------- cortar por la línea de puntos (no el monitor) Joaquín Hierro Díaz Area de Sistemas y Comunicaciones Centro Técnico de Informática Consejo Superior de Investigaciones Científicas c/Pinar 19 28006 MADRID Telef: (91) 564.29.63 ext 205 Fax: (91) 561.61.93