removed unnecessary locks

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-12-19 21:18:23 +00:00
parent 1bcc09f226
commit 270b7f58b6
+5 -9
View File
@@ -1230,16 +1230,12 @@ Desktop::MoveWindowBy(WindowLayer* window, float x, float y)
// moved into the dirty region (for now) // moved into the dirty region (for now)
newDirtyRegion.Include(&window->VisibleRegion()); newDirtyRegion.Include(&window->VisibleRegion());
if (GetDrawingEngine()->Lock()) { GetDrawingEngine()->CopyRegion(&copyRegion, x, y);
GetDrawingEngine()->CopyRegion(&copyRegion, x, y);
// in the dirty region, exclude the parts that we // in the dirty region, exclude the parts that we
// could move by blitting // could move by blitting
copyRegion.OffsetBy(x, y); copyRegion.OffsetBy(x, y);
newDirtyRegion.Exclude(&copyRegion); newDirtyRegion.Exclude(&copyRegion);
GetDrawingEngine()->Unlock();
}
MarkDirty(newDirtyRegion); MarkDirty(newDirtyRegion);
_SetBackground(background); _SetBackground(background);