removed unnecessary locks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1bcc09f226
commit
270b7f58b6
|
@ -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(©Region, x, y);
|
||||
GetDrawingEngine()->CopyRegion(©Region, x, y);
|
||||
|
||||
// in the dirty region, exclude the parts that we
|
||||
// could move by blitting
|
||||
copyRegion.OffsetBy(x, y);
|
||||
newDirtyRegion.Exclude(©Region);
|
||||
|
||||
GetDrawingEngine()->Unlock();
|
||||
}
|
||||
// in the dirty region, exclude the parts that we
|
||||
// could move by blitting
|
||||
copyRegion.OffsetBy(x, y);
|
||||
newDirtyRegion.Exclude(©Region);
|
||||
|
||||
MarkDirty(newDirtyRegion);
|
||||
_SetBackground(background);
|
||||
|
|
Loading…
Reference in New Issue