removed unnecessary locks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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(©Region, x, y);
|
||||||
GetDrawingEngine()->CopyRegion(©Region, 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(©Region);
|
newDirtyRegion.Exclude(©Region);
|
||||||
|
|
||||||
GetDrawingEngine()->Unlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
MarkDirty(newDirtyRegion);
|
MarkDirty(newDirtyRegion);
|
||||||
_SetBackground(background);
|
_SetBackground(background);
|
||||||
|
|||||||
Reference in New Issue
Block a user