diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-20 11:16:52 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-11-20 11:16:56 +0100 |
commit | 0caa85a629211fc75b461e952387cda59eaad73c (patch) | |
tree | 8de15c896c7366d6fa53b37680364a394d183405 /src | |
parent | d6a8a286dc861026a0b1a858aa093fc432e6b9de (diff) |
Fix alpha in images
Diffstat (limited to 'src')
-rw-r--r-- | src/ChatMessage.cpp | 2 | ||||
-rw-r--r-- | src/GtkGif.cpp | 2 | ||||
-rw-r--r-- | src/GtkScaledImage.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ChatMessage.cpp b/src/ChatMessage.cpp index 638cfa2..59eb059 100644 --- a/src/ChatMessage.cpp +++ b/src/ChatMessage.cpp @@ -9,7 +9,7 @@ namespace dchat { avatar.set_halign(Gtk::ALIGN_START); avatar.set_valign(Gtk::ALIGN_START); - avatar.set_size_request(50, 50); + avatar.set_size_request(35, 35); avatar.url = "https://discordemoji.com/assets/emoji/PeepoHide.png"; username.set_selectable(true); diff --git a/src/GtkGif.cpp b/src/GtkGif.cpp index 5800e29..76a6ebe 100644 --- a/src/GtkGif.cpp +++ b/src/GtkGif.cpp @@ -46,6 +46,6 @@ namespace dchat double scaleY = (double)height / (double)surface->get_height(); cairo->scale(scaleX, scaleY); cairo->set_source(surface, 0.0, 0.0); - cairo->paint(); + cairo->mask(surface, 0.0, 0.0); } }
\ No newline at end of file diff --git a/src/GtkScaledImage.cpp b/src/GtkScaledImage.cpp index 6f41c11..d6f0e49 100644 --- a/src/GtkScaledImage.cpp +++ b/src/GtkScaledImage.cpp @@ -57,6 +57,6 @@ namespace dchat double scaleY = (double)height / (double)surface->get_height(); cairo->scale(scaleX, scaleY); cairo->set_source(surface, 0.0, 0.0); - cairo->paint(); + cairo->mask(surface, 0.0, 0.0); } }
\ No newline at end of file |