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
This commit is contained in:
parent
eadd244c0f
commit
85874d8dd3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user