From 6d3e2e7e92ada3c430476de7a5dddf529914b4f0 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Fri, 26 Sep 2008 15:04:09 +0100 Subject: st: export st_get_framebuffer_dimensions() to retrieve the width & height of the fb --- src/mesa/state_tracker/st_framebuffer.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; +} -- cgit v1.2.3