st: export st_get_framebuffer_dimensions() to retrieve

the width & height of the fb
This commit is contained in:
Alan Hourihane 2008-09-26 15:04:09 +01:00
parent c7510ddc3f
commit 6d3e2e7e92
1 changed files with 7 additions and 0 deletions

View 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;
}