[vte/wip/mosaic: 2/2] emulation: Add new SGR and implementation for separated mosaics



commit 40d8b625d070401ff0fb87f8cab411129117b7b7
Author: Christian Persch <chpe src gnome org>
Date:   Mon Feb 17 20:59:20 2020 +0100

    emulation: Add new SGR and implementation for separated mosaics

 src/vtedraw.cc | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/vtedraw.cc b/src/vtedraw.cc
index c5ab4f75..7b49c235 100644
--- a/src/vtedraw.cc
+++ b/src/vtedraw.cc
@@ -1030,7 +1030,6 @@ _vte_draw_get_char_edges (struct _vte_draw *draw, vteunistr c, int columns, guin
                 *right = l + w;
 }
 
-#ifdef WITH_SEPARATED_MOSAICS
 static bool
 _vte_draw_is_separable_mosaic(vteunistr c)
 {
@@ -1121,7 +1120,6 @@ create_mosaic_separation_pattern(int width,
 
         return pattern;
 }
-#endif /* WITH_SEPARATED_MOSAICS */
 
 /* pixman data must have stride 0 mod 4 */
 static unsigned char const hatching_pattern_lr_data[16] = {
@@ -1277,11 +1275,9 @@ _vte_draw_terminal_draw_graphic(struct _vte_draw *draw,
         xright = x + width;
         ybottom = y + height;
 
-#ifdef WITH_SEPARATED_MOSAICS
         auto const separated = vte_attr_get_bool(attr, VTE_ATTR_SEPARATED_MOSAIC_SHIFT) 
&&_vte_draw_is_separable_mosaic(c);
         if (separated)
                 cairo_push_group(cr);
-#endif
 
         switch (c) {
 
@@ -2206,14 +2202,12 @@ _vte_draw_terminal_draw_graphic(struct _vte_draw *draw,
                 g_assert_not_reached();
         }
 
-#ifdef WITH_SEPARATED_MOSAICS
         if (separated) {
                 cairo_pop_group_to_source(cr);
                 auto pattern = create_mosaic_separation_pattern(width, height, light_line_width);
                 cairo_mask(cr, pattern);
                 cairo_pattern_destroy(pattern);
         }
-#endif
 
         cairo_restore(cr);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]