From 73150a4a03282c19b4b04bd2e3b5ff02fb15952e Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Sun, 18 Jul 2010 01:31:07 +0200 Subject: Component transfer filter (bzr r9508.1.24) --- src/display/cairo-utils.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/display/cairo-utils.cpp') diff --git a/src/display/cairo-utils.cpp b/src/display/cairo-utils.cpp index c46caa7be..a05d28170 100644 --- a/src/display/cairo-utils.cpp +++ b/src/display/cairo-utils.cpp @@ -448,13 +448,6 @@ ink_cairo_surface_get_height(cairo_surface_t *surface) return cairo_image_surface_get_height(surface); } -// taken from Cairo sources -static inline guint32 premul_alpha(guint32 color, guint32 alpha) -{ - guint32 temp = alpha * color + 128; - return (temp + (temp >> 8)) >> 8; -} - /** * @brief Convert pixel data from GdkPixbuf format to ARGB. * This will convert pixel data from GdkPixbuf format to Cairo's native pixel format. -- cgit v1.2.3