I was just going to implement Begin/EndViewTransaction(), but I saw
it is already implemented they way I thought it could be done - nice! Just some simplifications. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24027 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f6a3e5637b
commit
c3b57150e2
@ -637,12 +637,7 @@ void
|
||||
BWindow::BeginViewTransaction()
|
||||
{
|
||||
if (Lock()) {
|
||||
if (fInTransaction) {
|
||||
Unlock();
|
||||
return;
|
||||
}
|
||||
fInTransaction = true;
|
||||
|
||||
Unlock();
|
||||
}
|
||||
}
|
||||
@ -652,13 +647,9 @@ void
|
||||
BWindow::EndViewTransaction()
|
||||
{
|
||||
if (Lock()) {
|
||||
if (!fInTransaction) {
|
||||
Unlock();
|
||||
return;
|
||||
}
|
||||
fLink->Flush();
|
||||
if (fInTransaction)
|
||||
fLink->Flush();
|
||||
fInTransaction = false;
|
||||
|
||||
Unlock();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user