From c3b57150e29e347f67df6f7584cac544c804b2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 20 Feb 2008 00:42:09 +0000 Subject: [PATCH] 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 --- src/kits/interface/Window.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 20c13e7daf..6ad66e7cb3 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -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(); } }