comparison src/video/SDL_video.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 1d50666ed3d5
comparison
equal deleted inserted replaced
2909:3da0bb421d83 2910:27d8b12e0e8e
2123 2123
2124 real_rect.x = 0; 2124 real_rect.x = 0;
2125 real_rect.y = 0; 2125 real_rect.y = 0;
2126 real_rect.w = window->w; 2126 real_rect.w = window->w;
2127 real_rect.h = window->h; 2127 real_rect.h = window->h;
2128 if (!SDL_IntersectRectAndLine(&real_rect, &x1, &x2, &y1, &y2)) { 2128 if (!SDL_IntersectRectAndLine(&real_rect, &x1, &y1, &x2, &y2)) {
2129 return (0); 2129 return (0);
2130 } 2130 }
2131 return renderer->RenderLine(renderer, x1, y1, x2, y2); 2131 return renderer->RenderLine(renderer, x1, y1, x2, y2);
2132 } 2132 }
2133 2133