From 85874d8dd3477eb2fe765d0f5a7fb0b407657dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 5 Feb 2010 12:06:15 +0000 Subject: [PATCH] When a Window is created for holding BViews attached to an offscreen bitmap, always behave as if within a transaction. Otherwise all drawing calls to such BViews wait for the server to finish the request. This change gives a tremendous speed boost for these situations and is compatibly with BeOS, since there you also had to call Sync() before drawing a bitmap that was painted with attached views. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35414 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 999a146fb2..1168621d17 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -2691,7 +2691,7 @@ BWindow::_InitData(BRect frame, const char* title, window_look look, fLook = look; fFlags = flags | B_ASYNCHRONOUS_CONTROLS; - fInTransaction = false; + fInTransaction = bitmapToken >= 0; fUpdateRequested = false; fActive = false; fShowLevel = 0;