Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
= {{0}} generates a memset() in MSVC, which isn't linked. Whoops!
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Jul 24, 2013
1 parent 6124081 commit 10c2bb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/events/SDL_gesture.c
Expand Up @@ -391,11 +391,12 @@ static int dollarNormalize(const SDL_DollarPath *path,SDL_FloatPoint *points)

static float dollarRecognize(const SDL_DollarPath *path,int *bestTempl,SDL_GestureTouch* touch)
{

SDL_FloatPoint points[DOLLARNPOINTS] = {{0}};
SDL_FloatPoint points[DOLLARNPOINTS];
int i;
float bestDiff = 10000;

SDL_memset(points, 0, sizeof(points));

dollarNormalize(path,points);

//PrintPath(points);
Expand Down

0 comments on commit 10c2bb4

Please sign in to comment.