From 743e4d34c20168130568bb7942be8dfd4f1ce16f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 23 Dec 2008 02:38:28 +0000 Subject: [PATCH] Fixed argument order to the line clipping routine --- src/video/SDL_blendline.c | 2 +- src/video/SDL_drawline.c | 2 +- src/video/SDL_video.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/SDL_blendline.c b/src/video/SDL_blendline.c index 7960fc2f0..5838819cd 100644 --- a/src/video/SDL_blendline.c +++ b/src/video/SDL_blendline.c @@ -204,7 +204,7 @@ SDL_BlendLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, } /* Perform clipping */ - if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) { + if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) { return (0); } diff --git a/src/video/SDL_drawline.c b/src/video/SDL_drawline.c index 738c14ec3..96f206623 100644 --- a/src/video/SDL_drawline.c +++ b/src/video/SDL_drawline.c @@ -34,7 +34,7 @@ SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color) } /* Perform clipping */ - if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) { + if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) { return (0); } diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 015b287e5..8a76e9ee4 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -2125,7 +2125,7 @@ SDL_RenderLine(int x1, int y1, int x2, int y2) real_rect.y = 0; real_rect.w = window->w; real_rect.h = window->h; - if (!SDL_IntersectRectAndLine(&real_rect, &x1, &x2, &y1, &y2)) { + if (!SDL_IntersectRectAndLine(&real_rect, &x1, &y1, &x2, &y2)) { return (0); } return renderer->RenderLine(renderer, x1, y1, x2, y2);