mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 10:18:28 +00:00
Fix warnings
This commit is contained in:
parent
4869a3d294
commit
6e47f53869
3 changed files with 23 additions and 13 deletions
|
@ -88,7 +88,7 @@ int SDL_FillTriangle(SDL_Surface *dst, const SDL_Point points[3], Uint32 color)
|
|||
#endif
|
||||
|
||||
/* cross product AB x AC */
|
||||
static float cross_product(const SDL_Point *a, const SDL_Point *b, int c_x, int c_y)
|
||||
static int cross_product(const SDL_Point *a, const SDL_Point *b, int c_x, int c_y)
|
||||
{
|
||||
return (b->x - a->x) * (c_y - a->y) - (b->y - a->y) * (c_x - a->x);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue