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:
parent
af9d5ece00
commit
db5a78790c
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue