From 8725efc301283d9ed03caf5dd99e9de467ec27f6 Mon Sep 17 00:00:00 2001 From: Youngki Ahn Date: Tue, 26 Mar 2013 16:21:19 +0900 Subject: [PATCH] Fixed a problem that display a useless log (from GetMaskingCoolor()) Change-Id: I44eb2abacee1127844d0e3a0124da15c5ed6126f Signed-off-by: Youngki Ahn --- src/graphics/FGrp_Canvas.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/graphics/FGrp_Canvas.cpp diff --git a/src/graphics/FGrp_Canvas.cpp b/src/graphics/FGrp_Canvas.cpp old mode 100644 new mode 100755 index 05268d2..e9f7bd2 --- a/src/graphics/FGrp_Canvas.cpp +++ b/src/graphics/FGrp_Canvas.cpp @@ -1507,8 +1507,15 @@ _Canvas::DrawBitmap(const Point& point, const _Bitmap& bitmap) } } { - Color color; - bool isPixmanSupported = !this->__useStableRenderer && bitmap.GetMaskingColor(color ) != E_SUCCESS && alphaConstant >= 255; + bool isPixmanSupported = (!this->__useStableRenderer) && (alphaConstant >= 255); + + if (isPixmanSupported) + { + Color color; + + isPixmanSupported = !((bitmap.GetBitsPerPixel() == 16) && (bitmap.GetMaskingColor(color) == E_SUCCESS)); + } + if (isPixmanSupported) { _Util::Rectangle outRect = { 0, 0, -1, -1 }; -- 2.7.4