fix bug: When application has different resolution with device resolution, capture...
authorDae young Ryu <karzia@samsung.com>
Wed, 29 May 2013 11:20:12 +0000 (20:20 +0900)
committerDae young Ryu <karzia@samsung.com>
Wed, 29 May 2013 11:20:12 +0000 (20:20 +0900)
Change-Id: I2d78f379a2d4286825d8c7fc1ce2473b35c1afe7
Signed-off-by: Dae young Ryu <karzia@samsung.com>
src/ui/animations/FUiAnim_VisualElementImpl.cpp

index 3cde269..aab1a74 100644 (file)
@@ -6105,6 +6105,10 @@ _VisualElementImpl::CaptureI(Canvas& outputCanvas, const FloatRectangle& rectDes
 
                                        if(pStart)
                                        {
+
+                                               _VisualElementCoordinateSystem::ConvertRectangleToPhysicalIntegral(drawRect.x, drawRect.y, drawRect.width, drawRect.height);
+
+
                                                BufferInfo copyInfo;
                                                copyInfo.bitsPerPixel = info.bitsPerPixel;
                                                copyInfo.width = drawRect.width;
@@ -6140,6 +6144,9 @@ _VisualElementImpl::CaptureI(Canvas& outputCanvas, const FloatRectangle& rectDes
                                                                }
                                                        }
 
+                                                       _VisualElementCoordinateSystem::ConvertRectangleToLogical(drawRect.x, drawRect.y, drawRect.width, drawRect.height);
+
+
                                                        ByteBuffer buffer;
                                                        result r = buffer.Construct(pCopy, 0, copyInfo.height*(copyInfo.pitch), copyInfo.height*(copyInfo.pitch));
 
@@ -6151,8 +6158,6 @@ _VisualElementImpl::CaptureI(Canvas& outputCanvas, const FloatRectangle& rectDes
                                                                        _BitmapImpl::GetInstance(*pBitmap)->SetAsPremultiplied();
                                                                        pBitmap->SetAlphaConstant((int)(pRenderTarget->GetOpacityFromRoot() * 255.0f));
 
-                                                                       _VisualElementCoordinateSystem::ConvertRectangleToPhysicalIntegral(drawRect.x, drawRect.y, drawRect.width, drawRect.height);
-                                                                       _VisualElementCoordinateSystem::ConvertRectangleToLogical(drawRect.x, drawRect.y, drawRect.width, drawRect.height);
                                                                        FloatRectangle outputRect(rectDest.x + bounds.x - rectRef.x, rectDest.y + bounds.y - rectRef.y, drawRect.width, drawRect.height);
                                                                        FloatRectangle srcRect =  outputRect;
                                                                        srcRect.x = 0;