src/video/SDL_rect.c
changeset 2920 cdb01906cb7e
parent 2909 3da0bb421d83
child 2994 7563b99e9a49
equal deleted inserted replaced
2919:2f91a3847ae8 2920:cdb01906cb7e
   117         Amax = Bmax;
   117         Amax = Bmax;
   118     result->h = Amax - Amin;
   118     result->h = Amax - Amin;
   119 }
   119 }
   120 
   120 
   121 SDL_bool
   121 SDL_bool
   122 SDL_IntersectRectAndLine(const SDL_Rect *rect, int *X1, int *Y1, int *X2, int *Y2)
   122 SDL_IntersectRectAndLine(const SDL_Rect * rect, int *X1, int *Y1, int *X2,
       
   123                          int *Y2)
   123 {
   124 {
   124     int x1, y1;
   125     int x1, y1;
   125     int x2, y2;
   126     int x2, y2;
   126     int rectx1;
   127     int rectx1;
   127     int recty1;
   128     int recty1;