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
1 changed files with 5 additions and 9 deletions

View File

@ -1230,16 +1230,12 @@ Desktop::MoveWindowBy(WindowLayer* window, float x, float y)
// moved into the dirty region (for now)
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
// could move by blitting
copyRegion.OffsetBy(x, y);
newDirtyRegion.Exclude(&copyRegion);
GetDrawingEngine()->Unlock();
}
// in the dirty region, exclude the parts that we
// could move by blitting
copyRegion.OffsetBy(x, y);
newDirtyRegion.Exclude(&copyRegion);
MarkDirty(newDirtyRegion);
_SetBackground(background);