Mercurial > sdl-ios-xcode
comparison src/video/SDL_rect.c @ 3046:47965eacde88
Fix recommended by Eddy L O Jansson
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 19 Jan 2009 03:28:23 +0000 |
parents | f3d7226a8dfd |
children | 0267b8b1595c |
comparison
equal
deleted
inserted
replaced
3045:9acb9f0f7f0d | 3046:47965eacde88 |
---|---|
128 int recty1; | 128 int recty1; |
129 int rectx2; | 129 int rectx2; |
130 int recty2; | 130 int recty2; |
131 | 131 |
132 if (!rect || !X1 || !Y1 || !X2 || !Y2) { | 132 if (!rect || !X1 || !Y1 || !X2 || !Y2) { |
133 SDL_FALSE; | 133 return SDL_FALSE; |
134 } | 134 } |
135 | 135 |
136 x1 = *X1; | 136 x1 = *X1; |
137 y1 = *Y1; | 137 y1 = *Y1; |
138 x2 = *X2; | 138 x2 = *X2; |