mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1177807 - Mark cairo surface dirty in ReleaseBits. r=jrmuizel
This commit is contained in:
parent
80ff4083d9
commit
1b5125d97b
@ -702,6 +702,7 @@ DrawTargetCairo::LockBits(uint8_t** aData, IntSize* aSize,
|
||||
{
|
||||
if (cairo_surface_get_type(mSurface) == CAIRO_SURFACE_TYPE_IMAGE) {
|
||||
WillChange();
|
||||
Flush();
|
||||
|
||||
mLockedBits = cairo_image_surface_get_data(mSurface);
|
||||
*aData = mLockedBits;
|
||||
@ -719,6 +720,7 @@ DrawTargetCairo::ReleaseBits(uint8_t* aData)
|
||||
{
|
||||
MOZ_ASSERT(mLockedBits == aData);
|
||||
mLockedBits = nullptr;
|
||||
cairo_surface_mark_dirty(mSurface);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user