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 c91a017..cde6a78 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;
+}