WindowVX: Initialize all dirty flags and connect tmp tone

This commit is contained in:
Jonas Kulla 2014-09-23 21:13:16 +02:00
parent 81ac0780f8
commit 2550fd8ccc
1 changed files with 17 additions and 5 deletions

View File

@ -238,6 +238,11 @@ struct WindowVXPrivate
contentsOpacity(255),
openness(255),
tone(&tmp.tone),
ctrlVertDirty(false),
ctrlVertArrayDirty(false),
clipRectDirty(false),
cursorVertDirty(false),
cursorVertArrayDirty(false),
pauseAlphaIdx(0),
pauseQuadIdx(0),
cursorAlphaIdx(0)
@ -246,16 +251,23 @@ struct WindowVXPrivate
ctrlVert.resize(4 + 1);
pauseVert = &ctrlVert.vertices[4*4];
base.vertDirty = false;
base.texSizeDirty = false;
base.texDirty = false;
if (w > 0 || h > 0)
{
base.vertDirty = true;
base.texSizeDirty = true;
base.texDirty = true;
ctrlVertDirty = true;
clipRectDirty = true;
ctrlVertDirty = true;
}
prepareCon = shState->prepareDraw.connect
(sigc::mem_fun(this, &WindowVXPrivate::prepare));
refreshCursorRectCon();
refreshToneCon();
updateBaseQuad();
}