Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

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.
  • Loading branch information
slouken committed Feb 15, 2011
1 parent ea308dc commit 1e9e878d6180c39665aa1db37278f7cc220563ca

File 2 of 27 in 1e9e878

@@ -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.

0 comments on commit 1e9e878

Please sign in to comment.