From: Alan Hourihane Date: Fri, 26 Sep 2008 14:04:09 +0000 (+0100) Subject: st: export st_get_framebuffer_dimensions() to retrieve X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d3e2e7e92ada3c430476de7a5dddf529914b4f0;p=mesa.git st: export st_get_framebuffer_dimensions() to retrieve the width & height of the fb --- diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c index c91a01746d2..cde6a7898e4 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; +}