st: export st_get_framebuffer_dimensions() to retrieve
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 26 Sep 2008 14:04:09 +0000 (15:04 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 26 Sep 2008 14:05:01 +0000 (15:05 +0100)
    the width & height of the fb

src/mesa/state_tracker/st_framebuffer.c

index c91a01746d2cb487a0e13db2de78424e81a86f6f..cde6a7898e4e0e64e9865bc3fa9222685ad8b06e 100644 (file)
@@ -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;
+}