[vte/wip/sixels: 49/82] image: Paint with OVER operator to get correct composition on bg
- From: Hans Petter Jansson <hansp src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [vte/wip/sixels: 49/82] image: Paint with OVER operator to get correct composition on bg
 
- Date: Fri, 26 Jun 2020 00:47:13 +0000 (UTC)
 
commit dbabd0f6b80064dac89791a377cd1e01faada735
Author: Hans Petter Jansson <hpj cl no>
Date:   Fri Jun 12 12:32:16 2020 +0200
    image: Paint with OVER operator to get correct composition on bg
 src/image.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/image.cc b/src/image.cc
index c9ff5bd7..de998c8e 100644
--- a/src/image.cc
+++ b/src/image.cc
@@ -44,6 +44,7 @@ Image::paint(cairo_t *cr, int offset_x, int offset_y, int cell_width, int cell_h
         /* FIXME-hpj: Scale the image if cell width/height is different */
 
         cairo_save(cr);
+        cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
         cairo_rectangle(cr, offset_x, offset_y, m_width_pixels, m_height_pixels);
         cairo_clip(cr);
         cairo_set_source_surface(cr, m_surface.get(), offset_x, offset_y);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]