Kaydet (Commit) e24bd9ab authored tarafından Matúš Kukan's avatar Matúš Kukan

Bitmap::Crop: When the rectangle is entire bitmap, do nothing

It is expensive to rewrite the whole bitmap with the same content.

Change-Id: I001210840d535ac54837fff092c90835f9f2f547
üst 47bc3892
......@@ -784,7 +784,7 @@ bool Bitmap::Crop( const Rectangle& rRectPixel )
aRect.Intersection( Rectangle( Point(), aSizePix ) );
if( !aRect.IsEmpty() )
if( !aRect.IsEmpty() && aSizePix != aRect.GetSize())
{
BitmapReadAccess* pReadAcc = AcquireReadAccess();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment