Mesa (gallium-0.2): st: export st_get_framebuffer_dimensions() to retrieve
Alan Hourihane
alanh at kemper.freedesktop.org
Fri Sep 26 14:05:12 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 6d3e2e7e92ada3c430476de7a5dddf529914b4f0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d3e2e7e92ada3c430476de7a5dddf529914b4f0
Author: Alan Hourihane <alanh at tungstengraphics.com>
Date: Fri Sep 26 15:04:09 2008 +0100
st: export st_get_framebuffer_dimensions() to retrieve
the width & height of the fb
---
src/mesa/state_tracker/st_framebuffer.c | 7 +++++++
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 c91a017..cde6a78 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;
+}
More information about the mesa-commit
mailing list