Commit 74e352d0 authored by Sam Lantinga's avatar Sam Lantinga

Fixed variable use before initialize warnings

parent 0c3e29cd
...@@ -122,8 +122,10 @@ SDL_bool ...@@ -122,8 +122,10 @@ SDL_bool
SDL_EnclosePoints(const SDL_Point * points, int count, const SDL_Rect * clip, SDL_EnclosePoints(const SDL_Point * points, int count, const SDL_Rect * clip,
SDL_Rect * result) SDL_Rect * result)
{ {
int minx, miny; int minx = 0;
int maxx, maxy; int miny = 0;
int maxx = 0;
int maxy = 0;
int x, y, i; int x, y, i;
if (count < 1) { if (count < 1) {
...@@ -222,7 +224,8 @@ SDL_bool ...@@ -222,7 +224,8 @@ SDL_bool
SDL_IntersectRectAndLine(const SDL_Rect * rect, int *X1, int *Y1, int *X2, SDL_IntersectRectAndLine(const SDL_Rect * rect, int *X1, int *Y1, int *X2,
int *Y2) int *Y2)
{ {
int x, y; int x = 0;
int y = 0;
int x1, y1; int x1, y1;
int x2, y2; int x2, y2;
int rectx1; int rectx1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment