From 0caa85a629211fc75b461e952387cda59eaad73c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 20 Nov 2018 11:16:52 +0100 Subject: Fix alpha in images --- src/ChatMessage.cpp | 2 +- src/GtkGif.cpp | 2 +- src/GtkScaledImage.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3