WindowVX: Initialize all dirty flags and connect tmp tone
This commit is contained in:
parent
81ac0780f8
commit
2550fd8ccc
|
@ -238,6 +238,11 @@ struct WindowVXPrivate
|
||||||
contentsOpacity(255),
|
contentsOpacity(255),
|
||||||
openness(255),
|
openness(255),
|
||||||
tone(&tmp.tone),
|
tone(&tmp.tone),
|
||||||
|
ctrlVertDirty(false),
|
||||||
|
ctrlVertArrayDirty(false),
|
||||||
|
clipRectDirty(false),
|
||||||
|
cursorVertDirty(false),
|
||||||
|
cursorVertArrayDirty(false),
|
||||||
pauseAlphaIdx(0),
|
pauseAlphaIdx(0),
|
||||||
pauseQuadIdx(0),
|
pauseQuadIdx(0),
|
||||||
cursorAlphaIdx(0)
|
cursorAlphaIdx(0)
|
||||||
|
@ -246,16 +251,23 @@ struct WindowVXPrivate
|
||||||
ctrlVert.resize(4 + 1);
|
ctrlVert.resize(4 + 1);
|
||||||
pauseVert = &ctrlVert.vertices[4*4];
|
pauseVert = &ctrlVert.vertices[4*4];
|
||||||
|
|
||||||
base.vertDirty = true;
|
base.vertDirty = false;
|
||||||
base.texSizeDirty = true;
|
base.texSizeDirty = false;
|
||||||
base.texDirty = true;
|
base.texDirty = false;
|
||||||
ctrlVertDirty = true;
|
|
||||||
clipRectDirty = true;
|
if (w > 0 || h > 0)
|
||||||
|
{
|
||||||
|
base.vertDirty = true;
|
||||||
|
base.texSizeDirty = true;
|
||||||
|
clipRectDirty = true;
|
||||||
|
ctrlVertDirty = true;
|
||||||
|
}
|
||||||
|
|
||||||
prepareCon = shState->prepareDraw.connect
|
prepareCon = shState->prepareDraw.connect
|
||||||
(sigc::mem_fun(this, &WindowVXPrivate::prepare));
|
(sigc::mem_fun(this, &WindowVXPrivate::prepare));
|
||||||
|
|
||||||
refreshCursorRectCon();
|
refreshCursorRectCon();
|
||||||
|
refreshToneCon();
|
||||||
updateBaseQuad();
|
updateBaseQuad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue