aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
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);
}