diff --git a/gfx/src/beos/nsDrawingSurfaceBeOS.cpp b/gfx/src/beos/nsDrawingSurfaceBeOS.cpp index 602006218cb..e2bd73ddf20 100644 --- a/gfx/src/beos/nsDrawingSurfaceBeOS.cpp +++ b/gfx/src/beos/nsDrawingSurfaceBeOS.cpp @@ -254,6 +254,11 @@ bool nsDrawingSurfaceBeOS :: LockDrawable() void nsDrawingSurfaceBeOS :: UnlockDrawable() { - if (!mBitmap) + if (!mView) + return; + + if (mBitmap) + mView->Sync(); + else mView->UnlockLooper(); -} \ No newline at end of file +}