aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-02-01 13:26:33 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-01 13:26:33 +0100
commitb69070ae5ab12189df3130a0ec236ebdcf148551 (patch)
treed6546c547ef03abad63944d9fbf00b528d9a5265 /fb-gui.c
parent01a758d1062046eef4c7ee691e1b8f65f49a8095 (diff)
downloadfbida-b69070ae5ab12189df3130a0ec236ebdcf148551.tar.gz
fix darkify
Diffstat (limited to 'fb-gui.c')
-rw-r--r--fb-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb-gui.c b/fb-gui.c
index 1994f51..46b8d69 100644
--- a/fb-gui.c
+++ b/fb-gui.c
@@ -248,7 +248,7 @@ void shadow_darkify(int x1, int x2, int y1,int y2, int percent)
cairo_rectangle(context, x1, y1,
x2 - x1 + 1,
y2 - y1 + 1);
- cairo_set_source_rgba(context, 0, 0, 0, percent * 0.01);
+ cairo_set_source_rgba(context, 0, 0, 0, 1 - (percent * 0.01));
cairo_fill(context);
}