summaryrefslogtreecommitdiff
path: root/src/video/windows/SDL_windowsframebuffer.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-02-15 13:59:59 -0800
committerSam Lantinga <slouken@libsdl.org>2011-02-15 13:59:59 -0800
commitf1a39dc6e0cb26b2968fe830e035133d43264af4 (patch)
treefbeaf89783b853be4d1e0bb801da2719d6e6b5eb /src/video/windows/SDL_windowsframebuffer.c
parent548032696b5c90145605746871c771829b4e8cc0 (diff)
downloadsdl-f1a39dc6e0cb26b2968fe830e035133d43264af4.tar.gz
Changed the concept of a render clip rect to a render viewport.
The render viewport is automatically re-centered when the window changes size, so applications that don't care will not have to handle recalculating their rendering coordinates. Fixed API for drawing and filling multiple rectangles - the parameter should be an array of rects, not an array of pointers to rects. Fixed API for updating window rects for consistency with other APIs - the order is pointer to array followed by count in array.
Diffstat (limited to 'src/video/windows/SDL_windowsframebuffer.c')
-rw-r--r--src/video/windows/SDL_windowsframebuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/windows/SDL_windowsframebuffer.c b/src/video/windows/SDL_windowsframebuffer.c
index 8a577b945..68511013a 100644
--- a/src/video/windows/SDL_windowsframebuffer.c
+++ b/src/video/windows/SDL_windowsframebuffer.c
@@ -100,7 +100,7 @@ int WIN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, voi
return 0;
}
-int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, int numrects, SDL_Rect * rects)
+int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, SDL_Rect * rects, int numrects)
{
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;