Author: stippi Date: 2010-02-05 13:06:15 +0100 (Fri, 05 Feb 2010) New Revision: 35414 Changeset: http://dev.haiku-os.org/changeset/35414/haiku Modified: haiku/trunk/src/kits/interface/Window.cpp Log: 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. Modified: haiku/trunk/src/kits/interface/Window.cpp =================================================================== --- haiku/trunk/src/kits/interface/Window.cpp 2010-02-05 09:41:37 UTC (rev 35413) +++ haiku/trunk/src/kits/interface/Window.cpp 2010-02-05 12:06:15 UTC (rev 35414) @@ -2691,7 +2691,7 @@ fLook = look; fFlags = flags | B_ASYNCHRONOUS_CONTROLS; - fInTransaction = false; + fInTransaction = bitmapToken >= 0; fUpdateRequested = false; fActive = false; fShowLevel = 0;