aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Becker <ampernand@gmail.com>2017-04-23 14:17:07 -0400
committerJeff Becker <ampernand@gmail.com>2017-04-23 14:17:07 -0400
commit9674eeff94b6f62d983dc6f47936f87c49a8bc61 (patch)
tree276e9e866b892ba4a473bec6e52d36d64dd2ccd9 /src
parent6ea89afb98f0a55abe5e7d3b2999dc458e9af300 (diff)
downloadwterm-9674eeff94b6f62d983dc6f47936f87c49a8bc61.zip
wterm-9674eeff94b6f62d983dc6f47936f87c49a8bc61.tar.gz
wterm-9674eeff94b6f62d983dc6f47936f87c49a8bc61.tar.bz2
make edges use alpha
Diffstat (limited to 'src')
-rw-r--r--src/st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/st.c b/src/st.c
index c9ba807..9a59dca 100644
--- a/src/st.c
+++ b/src/st.c
@@ -3026,6 +3026,7 @@ void
wltermclear(int col1, int row1, int col2, int row2)
{
uint32_t color = dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg];
+ color = (color & term_alpha << 24) | (color & 0x00FFFFFF);
wld_fill_rectangle(wld.renderer, color, borderpx + col1 * wl.cw,
borderpx + row1 * wl.ch, (col2-col1+1) * wl.cw,
(row2-row1+1) * wl.ch);
@@ -3038,6 +3039,7 @@ void
wlclear(int x1, int y1, int x2, int y2)
{
uint32_t color = dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg];
+ color = (color & term_alpha << 24) | (color & 0x00FFFFFF);
wld_fill_rectangle(wld.renderer, color, x1, y1, x2 - x1, y2 - y1);
}