diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-01 13:26:33 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-01 13:26:33 +0100 |
commit | b69070ae5ab12189df3130a0ec236ebdcf148551 (patch) | |
tree | d6546c547ef03abad63944d9fbf00b528d9a5265 /fb-gui.c | |
parent | 01a758d1062046eef4c7ee691e1b8f65f49a8095 (diff) | |
download | fbida-b69070ae5ab12189df3130a0ec236ebdcf148551.tar.gz |
fix darkify
Diffstat (limited to 'fb-gui.c')
-rw-r--r-- | fb-gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |