Mail Archives: djgpp/1999/04/08/15:35:37
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 -