vcl: followup to remove unnecessary resets
Followup for 44dfcebde64b9edfa9f50eace34e5e1497ab9314 Just enclose it in the correct scope. Change-Id: I3bb3bfa0fa8bc5996d728f175aad16b64da52166 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180260 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
parent
94d851b27f
commit
f7af54d39a
@ -43,6 +43,7 @@ BlendFrameCache::BlendFrameCache(Size const& rSize, sal_uInt8 nAlpha, Color cons
|
|||||||
|
|
||||||
aContent.Erase(COL_BLACK);
|
aContent.Erase(COL_BLACK);
|
||||||
|
|
||||||
|
{
|
||||||
BitmapScopedWriteAccess pContent(aContent);
|
BitmapScopedWriteAccess pContent(aContent);
|
||||||
BitmapScopedWriteAccess pAlpha(aAlpha);
|
BitmapScopedWriteAccess pAlpha(aAlpha);
|
||||||
|
|
||||||
@ -127,9 +128,7 @@ BlendFrameCache::BlendFrameCache(Size const& rSize, sal_uInt8 nAlpha, Color cons
|
|||||||
pAlpha->SetPixelOnData(pScanAlpha, x, BitmapColor(nAlpha));
|
pAlpha->SetPixelOnData(pScanAlpha, x, BitmapColor(nAlpha));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pContent.reset();
|
|
||||||
pAlpha.reset();
|
|
||||||
|
|
||||||
m_aLastResult = BitmapEx(aContent, aAlpha);
|
m_aLastResult = BitmapEx(aContent, aAlpha);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user