From db5a78790cc9ef2476c9bbd056f60c4ac326a9d2 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 22 Dec 2018 00:29:50 +0000 Subject: [PATCH] Make make_shadow() public Some the refactored backends can use it. Signed-off-by: Yuxuan Shui --- src/render.c | 2 +- src/render.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/render.c b/src/render.c index e7d599ee..ac3320e2 100644 --- a/src/render.c +++ b/src/render.c @@ -443,7 +443,7 @@ static void paint_root(session_t *ps, const region_t *reg_paint) { ps->root_tile_paint.pict); } -static xcb_image_t *make_shadow(session_t *ps, double opacity, int width, int height) { +xcb_image_t *make_shadow(session_t *ps, double opacity, int width, int height) { xcb_image_t *ximage; int ylimit, xlimit; int swidth = width + ps->cgsize; diff --git a/src/render.h b/src/render.h index eca135eb..e5fc25fb 100644 --- a/src/render.h +++ b/src/render.h @@ -3,6 +3,7 @@ #pragma once #include +#include #include "region.h" typedef struct _glx_texture glx_texture_t; @@ -34,3 +35,5 @@ void free_root_tile(session_t *ps); bool init_render(session_t *ps); void deinit_render(session_t *ps); + +xcb_image_t *make_shadow(session_t *ps, double opacity, int width, int height);