www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/08/15:35:37

From: "James Bunting" <james AT aic DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
References: <7eiamo$4od$1 AT wanadoo DOT fr> <370cf69a DOT 0 AT energise DOT enta DOT net>
Subject: Re: problem: allegro BITMAP struct
Date: Thu, 8 Apr 1999 19:25:00 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
NNTP-Posting-Host: warp8-135.enta-net.co.uk
Message-ID: <370cf732.0@energise.enta.net>
X-Trace: 8 Apr 1999 19:36:34 -0100, warp8-135.enta-net.co.uk
Lines: 58
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Oops the blit line should be...

 blit( vm->bitmap1, vm->bitmap2, 0, 0, 0, 0, wm->bitmap1->w,
vm->bitmap2->h);

and not

 blit( vm->bitmap1, vm->bitmap2, 0, 0, 0, 0, bitmap1, bitmap2);

DOH :-)

James Bunting <james AT aic DOT co DOT uk> wrote in message
news:370cf69a DOT 0 AT energise DOT enta DOT net...
> err something like this may work OK.
>
>
> void CopyTheBitmaps( vehicule_model* vm)
> {
>     if(( vm->bitmap2 = create_bitmap( vm->bitmap1->w, wm->bitmap1->h)) ==
> NULL)
>         return 0; // error
>
>     blit( vm->bitmap1, vm->bitmap2, 0, 0, 0, 0, bitmap1, bitmap2);
>
>     return 1; // ok
> }
>
>
>
>
> CORNU.Nicolas <CORNU DOT Nicolas AT wanadoo DOT fr> wrote in message
> news:7eiamo$4od$1 AT wanadoo DOT fr...
> > How i can use a function (in other .c file) to work with allegro bitmap
> > struct
> > like that
> >
> > typedef struct vehicule_model
> > {
> >  BITMAP *thing1;
> >  BITMAP *thing1;
> > }
> >
> > i want the function to copy the first bitmap thing1 to thing2.
> >
> >
> > thanks
> >
> > --
> > CORNU Nicolas
> > E-mail: CORNU DOT Nicolas AT wanadoo DOT fr
> > ICQ: 31463000
> > Homepage: http://perso.wanadoo.fr/nicolas.cornu/Index.htm
> >
> >
>
>


- Raw text -


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