summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-09-26 15:04:09 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-09-26 15:05:01 +0100
commit6d3e2e7e92ada3c430476de7a5dddf529914b4f0 (patch)
treeb328b207ccd6b32722d43fef8f6c5ec631a3a8c0 /src/mesa/state_tracker
parentc7510ddc3f6faa68154c11ce820097492a0748d2 (diff)
st: export st_get_framebuffer_dimensions() to retrieve
the width & height of the fb
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_framebuffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c
index c91a01746d..cde6a7898e 100644
--- a/src/mesa/state_tracker/st_framebuffer.c
+++ b/src/mesa/state_tracker/st_framebuffer.c
@@ -301,3 +301,10 @@ void *st_framebuffer_private( struct st_framebuffer *stfb )
return stfb->Private;
}
+void st_get_framebuffer_dimensions( struct st_framebuffer *stfb,
+ int *width,
+ int *height)
+{
+ *width = stfb->Base.Width;
+ *height = stfb->Base.Height;
+}