aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-07 09:42:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-17 15:58:30 +0000
commitb771a28d17397892eebdacdfb07fba6e331a0207 (patch)
tree5d1863bfaf3ee08e9dfcbf7b8e7a8653e718bcab
parentconfig: add tweak.box-drawing-solid-shades=yes|no (diff)
box-drawing: increase brightness of solid shades
-rw-r--r--box-drawing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/box-drawing.c b/box-drawing.c
index e9e7ec33..239fb63f 100644
--- a/box-drawing.c
+++ b/box-drawing.c
@@ -1762,7 +1762,7 @@ draw_light_shade(struct buf *buf)
change_buffer_format(buf, PIXMAN_a1);
if (buf->solid_shades)
- draw_pixman_shade(buf, 0x2000);
+ draw_pixman_shade(buf, 0x4000);
else {
for (size_t row = 0; row < buf->height; row += 2) {
for (size_t col = 0; col < buf->width; col += 2) {
@@ -1785,7 +1785,7 @@ draw_medium_shade(struct buf *buf)
change_buffer_format(buf, PIXMAN_a1);
if (buf->solid_shades)
- draw_pixman_shade(buf, 0x4000);
+ draw_pixman_shade(buf, 0x8000);
else {
for (size_t row = 0; row < buf->height; row++) {
for (size_t col = row % 2; col < buf->width; col += 2) {
@@ -1808,7 +1808,7 @@ draw_dark_shade(struct buf *buf)
change_buffer_format(buf, PIXMAN_a1);
if (buf->solid_shades)
- draw_pixman_shade(buf, 0x8000);
+ draw_pixman_shade(buf, 0xc000);
else {
for (size_t row = 0; row < buf->height; row++) {
for (size_t col = 0; col < buf->width; col += 1 + row % 2) {