From: Alan Hourihane Date: Fri, 26 Sep 2008 14:08:57 +0000 (+0100) Subject: st: add prototype for st_get_framebuffer_dimensions() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=632055f831a6eef75a73f246e2548fd2d4789acd;p=mesa.git st: add prototype for st_get_framebuffer_dimensions() --- diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c index cde6a7898e4..1ff70093823 100644 --- a/src/mesa/state_tracker/st_framebuffer.c +++ b/src/mesa/state_tracker/st_framebuffer.c @@ -302,8 +302,8 @@ void *st_framebuffer_private( struct st_framebuffer *stfb ) } void st_get_framebuffer_dimensions( struct st_framebuffer *stfb, - int *width, - int *height) + uint *width, + uint *height) { *width = stfb->Base.Width; *height = stfb->Base.Height; diff --git a/src/mesa/state_tracker/st_public.h b/src/mesa/state_tracker/st_public.h index 835c5b28d06..6ef30f44032 100644 --- a/src/mesa/state_tracker/st_public.h +++ b/src/mesa/state_tracker/st_public.h @@ -75,6 +75,9 @@ void st_resize_framebuffer( struct st_framebuffer *stfb, void st_set_framebuffer_surface(struct st_framebuffer *stfb, uint surfIndex, struct pipe_surface *surf); +void st_get_framebuffer_dimensions( struct st_framebuffer *stfb, + uint *width, uint *height); + struct pipe_surface *st_get_framebuffer_surface(struct st_framebuffer *stfb, uint surfIndex);