Fixed a problem that display a useless log (from GetMaskingCoolor())
authorYoungki Ahn <ykahn@samsung.com>
Tue, 26 Mar 2013 07:21:19 +0000 (16:21 +0900)
committerYoungki Ahn <ykahn@samsung.com>
Tue, 26 Mar 2013 07:21:19 +0000 (16:21 +0900)
Change-Id: I44eb2abacee1127844d0e3a0124da15c5ed6126f
Signed-off-by: Youngki Ahn <ykahn@samsung.com>
src/graphics/FGrp_Canvas.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 05268d2..e9f7bd2
@@ -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<int> outRect = { 0, 0, -1, -1 };