From a8ad4851d3007145c628a0b20c663d84a6341a05 Mon Sep 17 00:00:00 2001 From: "sergei_d%fi.tartu.ee" Date: Fri, 18 Nov 2005 19:37:02 +0000 Subject: [PATCH] [BeOS]Bug 283225. Do not lock already locked, p=sergei_d, r=biesi, BeOS-only --- gfx/src/beos/nsDrawingSurfaceBeOS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/src/beos/nsDrawingSurfaceBeOS.cpp b/gfx/src/beos/nsDrawingSurfaceBeOS.cpp index aecdcc1f250..72e48cf0a1a 100644 --- a/gfx/src/beos/nsDrawingSurfaceBeOS.cpp +++ b/gfx/src/beos/nsDrawingSurfaceBeOS.cpp @@ -255,8 +255,8 @@ bool nsDrawingSurfaceBeOS :: LockDrawable() } else { - // Was locked in Init(), only test - rv = mBitmap->Lock(); + // Was locked in Init(), only test for locked state here + rv = mBitmap->IsLocked(); } return rv; }