Code: Select all
gfx_apply_surface(Objects[1].x,Objects[1].y,gfx_ball,gfx_screen);
here is the gfx_appy_surface function code.
Code: Select all
void gfx_apply_surface(int x, int y, SDL_Surface* source, SDL_Surface* destination )
{
SDL_Rect offset;
offset.x = x;
offset.y = y;
SDL_BlitSurface( source, NULL, destination, &offset );
}
Code: Select all
typedef struct{
int x;
int y;
SDL_Surface *graphic;
int graphicx;
int graphicy;
int height;
int width;
int solid;
}Ob_Objects;
main.c142 :Internal Compiler Error: in Propagate_one_insn, at flow.c1690