Mail Archives: djgpp/1996/11/19/18:24:35
I seem to have a problem with the stretch_blit function in Allegro 2.1.
void stretch_blit(BITMAP *source, BITMAP *dest,
int source_x, source_y, source_width, source_height,
int dest_x, dest_y, dest_width, dest_height);
If I try to change source_y to anything other than 0, it crashes. I'm
able to change source_x with no problems but not source_y. For example,
if I change the line in test.c from:
stretch_blit(global_sprite, screen, 0, 0, 32, 32, SCREEN_W/2-c,
SCREEN_H/2-(256-c), c*2, (256-c)*2);
to..
stretch_blit(global_sprite, screen, 0, 1, 32, 32, SCREEN_W/2-c,
SCREEN_H/2-(256-c), c*2, (256-c)*2);
Then it crashes during the stretch. Has anyone else tried this? Am I
doing something wrong? How can this be fixed?
- Raw text -