diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-02-21 23:20:09 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-02-25 13:47:48 +0100 |
commit | d08792bfffc6b7b28f59d7ee100091805367b7fa (patch) | |
tree | 33c514b2e9f70be4980614717093029f675fc7fd /rootston | |
parent | e6ca78b0e4b81e02958628c4b3b4db911b51714b (diff) |
Add alpha to wlr_render_with_matrix
so we can use the alpha channel to e.g. blend in textures
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/output.c b/rootston/output.c index a354ebf8..3fc8ea84 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -296,7 +296,7 @@ static void render_surface(struct wlr_surface *surface, double lx, double ly, pixman_box32_t *rects = pixman_region32_rectangles(&damage, &nrects); for (int i = 0; i < nrects; ++i) { scissor_output(output, &rects[i]); - wlr_render_with_matrix(renderer, surface->texture, &matrix); + wlr_render_with_matrix(renderer, surface->texture, &matrix, 1.0f); } damage_finish: |