forked from AuroraMiddleware/gtk
gl renderer: Remove unused function
This commit is contained in:
parent
39a48de025
commit
053360df85
@ -1118,27 +1118,6 @@ render_clip_node (GskGLRenderer *self,
|
||||
render_clipped_child (self, builder, clip, child);
|
||||
}
|
||||
|
||||
static inline void
|
||||
get_inner_rect (const GskRoundedRect *rect,
|
||||
graphene_rect_t *out)
|
||||
{
|
||||
const float left = MAX (rect->corner[GSK_CORNER_TOP_LEFT].width,
|
||||
rect->corner[GSK_CORNER_BOTTOM_LEFT].width);
|
||||
const float top = MAX (rect->corner[GSK_CORNER_TOP_LEFT].height,
|
||||
rect->corner[GSK_CORNER_TOP_RIGHT].height);
|
||||
|
||||
out->origin.x = rect->bounds.origin.x + left;
|
||||
out->origin.y = rect->bounds.origin.y + top;
|
||||
|
||||
out->size.width = rect->bounds.size.width - left -
|
||||
MAX (rect->corner[GSK_CORNER_TOP_RIGHT].width,
|
||||
rect->corner[GSK_CORNER_BOTTOM_RIGHT].width);
|
||||
|
||||
out->size.height = rect->bounds.size.height - top -
|
||||
MAX (rect->corner[GSK_CORNER_BOTTOM_LEFT].height,
|
||||
rect->corner[GSK_CORNER_BOTTOM_RIGHT].height);
|
||||
}
|
||||
|
||||
static inline void
|
||||
render_rounded_clip_node (GskGLRenderer *self,
|
||||
GskRenderNode *node,
|
||||
|
Loading…
Reference in New Issue
Block a user