src/render/SDL_sysrender.h
changeset 5297 1800dc39b74c
parent 5290 25af68c1901d
child 5423 b69fa50e80d7
--- a/src/render/SDL_sysrender.h	Mon Feb 14 11:50:18 2011 -0600
+++ b/src/render/SDL_sysrender.h	Tue Feb 15 13:59:59 2011 -0800
@@ -78,13 +78,13 @@
     int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
                         const SDL_Rect * rect, void **pixels, int *pitch);
     void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
-    void (*SetClipRect) (SDL_Renderer * renderer, const SDL_Rect *rect);
+    int (*UpdateViewport) (SDL_Renderer * renderer);
     int (*RenderClear) (SDL_Renderer * renderer);
     int (*RenderDrawPoints) (SDL_Renderer * renderer, const SDL_Point * points,
                              int count);
     int (*RenderDrawLines) (SDL_Renderer * renderer, const SDL_Point * points,
                             int count);
-    int (*RenderFillRects) (SDL_Renderer * renderer, const SDL_Rect ** rects,
+    int (*RenderFillRects) (SDL_Renderer * renderer, const SDL_Rect * rects,
                             int count);
     int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
                        const SDL_Rect * srcrect, const SDL_Rect * dstrect);
@@ -101,6 +101,9 @@
     /* The window associated with the renderer */
     SDL_Window *window;
 
+    /* The drawable area within the window */
+    SDL_Rect viewport;
+
     /* The list of textures */
     SDL_Texture *textures;