diff options
author | Alan Hourihane <[email protected]> | 2008-09-26 15:08:57 +0100 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2008-09-26 15:08:57 +0100 |
commit | 632055f831a6eef75a73f246e2548fd2d4789acd (patch) | |
tree | 787e447b13db23c3291eb1ed67765a7fd88d4313 | |
parent | 6d3e2e7e92ada3c430476de7a5dddf529914b4f0 (diff) |
st: add prototype for st_get_framebuffer_dimensions()
-rw-r--r-- | src/mesa/state_tracker/st_framebuffer.c | 4 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_public.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c index cde6a7898e4..1ff70093823 100644 --- a/src/mesa/state_tracker/st_framebuffer.c +++ b/src/mesa/state_tracker/st_framebuffer.c @@ -302,8 +302,8 @@ void *st_framebuffer_private( struct st_framebuffer *stfb ) } void st_get_framebuffer_dimensions( struct st_framebuffer *stfb, - int *width, - int *height) + uint *width, + uint *height) { *width = stfb->Base.Width; *height = stfb->Base.Height; diff --git a/src/mesa/state_tracker/st_public.h b/src/mesa/state_tracker/st_public.h index 835c5b28d06..6ef30f44032 100644 --- a/src/mesa/state_tracker/st_public.h +++ b/src/mesa/state_tracker/st_public.h @@ -75,6 +75,9 @@ void st_resize_framebuffer( struct st_framebuffer *stfb, void st_set_framebuffer_surface(struct st_framebuffer *stfb, uint surfIndex, struct pipe_surface *surf); +void st_get_framebuffer_dimensions( struct st_framebuffer *stfb, + uint *width, uint *height); + struct pipe_surface *st_get_framebuffer_surface(struct st_framebuffer *stfb, uint surfIndex); |