1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

Make make_shadow() public

Some the refactored backends can use it.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-12-22 00:29:50 +00:00
parent af9d5ece00
commit db5a78790c
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47
2 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -3,6 +3,7 @@
#pragma once
#include <xcb/render.h>
#include <xcb/xcb_image.h>
#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);