comparison src/video/SDL_blendline.c @ 2910:27d8b12e0e8e

Fixed argument order to the line clipping routine
author Sam Lantinga <slouken@libsdl.org>
date Tue, 23 Dec 2008 02:38:28 +0000
parents 3da0bb421d83
children 0267b8b1595c
comparison
equal deleted inserted replaced
2909:3da0bb421d83 2910:27d8b12e0e8e
202 SDL_SetError("SDL_BlendLine(): Unsupported surface format"); 202 SDL_SetError("SDL_BlendLine(): Unsupported surface format");
203 return (-1); 203 return (-1);
204 } 204 }
205 205
206 /* Perform clipping */ 206 /* Perform clipping */
207 if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) { 207 if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) {
208 return (0); 208 return (0);
209 } 209 }
210 210
211 211
212 if ((blendMode == SDL_BLENDMODE_BLEND) 212 if ((blendMode == SDL_BLENDMODE_BLEND)