summaryrefslogtreecommitdiff
path: root/include/SDL_surface.h
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 /include/SDL_surface.h
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 'include/SDL_surface.h')
-rw-r--r--include/SDL_surface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/SDL_surface.h b/include/SDL_surface.h
index 7ab8a665c..08e68fd48 100644
--- a/include/SDL_surface.h
+++ b/include/SDL_surface.h
@@ -374,7 +374,7 @@ extern DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height,
extern DECLSPEC int SDLCALL SDL_FillRect
(SDL_Surface * dst, const SDL_Rect * rect, Uint32 color);
extern DECLSPEC int SDLCALL SDL_FillRects
- (SDL_Surface * dst, const SDL_Rect ** rects, int count, Uint32 color);
+ (SDL_Surface * dst, const SDL_Rect * rects, int count, Uint32 color);
/**
* Performs a fast blit from the source surface to the destination surface.