aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-10-10 06:15:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-10-10 06:15:11 +0000
commit5c58fc2a28db342956424fe62168e21c0887d9e7 (patch)
tree0ee95e2edee83529a92c5f14df63cec2d7183b5d /render.c
parentrender: more fine-grained wayland surface damage tracking (diff)
parentchangelog: fix issue number for visual bell (diff)
Merge branch 'visual-bell-remastered'
Closes #1337
Diffstat (limited to 'render.c')
-rw-r--r--render.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render.c b/render.c
index 9296223a..9f858bf1 100644
--- a/render.c
+++ b/render.c
@@ -1588,7 +1588,9 @@ render_overlay(struct terminal *term)
break;
case OVERLAY_FLASH:
- color = (pixman_color_t){.red=0x7fff, .green=0x7fff, .blue=0, .alpha=0x7fff};
+ color = color_hex_to_pixman_with_alpha(
+ term->conf->colors.flash,
+ term->conf->colors.flash_alpha);
break;
}
@@ -2193,7 +2195,7 @@ render_csd_button_maximize_maximized(
{ x_margin + shrink, y_margin + thick, thick, width - 2 * thick - shrink },
{ x_margin + width - thick - shrink, y_margin + thick, thick, width - 2 * thick - shrink },
{ x_margin + shrink, y_margin + width - thick - shrink, width - 2 * shrink, thick }});
-
+
pixman_image_unref(src);
}