mirror of https://github.com/encounter/SDL.git
psp/SDL_sysjoystick.c: fix -Wshadow warnings.
This commit is contained in:
parent
801dcbc5ef
commit
f266d92286
|
@ -63,10 +63,10 @@ static point c = { 78, 32767 };
|
||||||
static point d = { 128, 32767 };
|
static point d = { 128, 32767 };
|
||||||
|
|
||||||
/* simple linear interpolation between two points */
|
/* simple linear interpolation between two points */
|
||||||
static SDL_INLINE void lerp (point *dest, point *a, point *b, float t)
|
static SDL_INLINE void lerp (point *dest, point *pt_a, point *pt_b, float t)
|
||||||
{
|
{
|
||||||
dest->x = a->x + (b->x - a->x)*t;
|
dest->x = pt_a->x + (pt_b->x - pt_a->x)*t;
|
||||||
dest->y = a->y + (b->y - a->y)*t;
|
dest->y = pt_a->y + (pt_b->y - pt_a->y)*t;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* evaluate a point on a bezier-curve. t goes from 0 to 1.0 */
|
/* evaluate a point on a bezier-curve. t goes from 0 to 1.0 */
|
||||||
|
|
Loading…
Reference in New Issue