From: dooglus Date: Thu, 9 Oct 2008 17:47:24 +0000 (+0000) Subject: Fix 2119764 "eyedropper doesn't work with straight blends" for checkerboards. http... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cfa7b5f6f6f0041a517c77644a8cc2172cb2d3ef;p=synfig.git Fix 2119764 "eyedropper doesn't work with straight blends" for checkerboards. dooglus.rincevent.net/synfig/eyedrop-checkerboard.sifz shows an example of how it wasn't working before. View the Info panel which moving the mouse cursor over the transparent canvas and see non-transparent pixel values. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2088 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_geometry/checkerboard.cpp b/synfig-core/trunk/src/modules/mod_geometry/checkerboard.cpp index 29f52e3..30bbf8e 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/checkerboard.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/checkerboard.cpp @@ -160,7 +160,7 @@ CheckerBoard::get_color(Context context, const Point &getpos)const return Color::blend(color,context.get_color(getpos),get_amount(),get_blend_method()); } else - return context.get_color(getpos); + return Color::blend(Color::alpha(),context.get_color(getpos),get_amount(),get_blend_method()); } bool