Window: Always rebuild cursor_rect tex coords
If the same Window updated its control verts without a visble cursor_rect, these tex coords will get randomly overwritten by further control parts.
This commit is contained in:
parent
05f73f0b98
commit
f49b03ba23
|
@ -268,7 +268,6 @@ struct WindowPrivate
|
||||||
refreshCursorRectCon();
|
refreshCursorRectCon();
|
||||||
|
|
||||||
controlsQuadArray.resize(14);
|
controlsQuadArray.resize(14);
|
||||||
TileQuads::buildFrameSource(cursorSrc, controlsQuadArray.vertices.data());
|
|
||||||
cursorVert.count = 9;
|
cursorVert.count = 9;
|
||||||
pauseAniVert.count = 1;
|
pauseAniVert.count = 1;
|
||||||
|
|
||||||
|
@ -465,7 +464,8 @@ struct WindowPrivate
|
||||||
IntRect effectRect(cursorRect->x+16, cursorRect->y+16,
|
IntRect effectRect(cursorRect->x+16, cursorRect->y+16,
|
||||||
cursorRect->width, cursorRect->height);
|
cursorRect->width, cursorRect->height);
|
||||||
cursorVert.vert = &vert[i*4];
|
cursorVert.vert = &vert[i*4];
|
||||||
i += TileQuads::buildFrame(effectRect, &vert[i*4]);
|
TileQuads::buildFrameSource(cursorSrc, cursorVert.vert);
|
||||||
|
i += TileQuads::buildFrame(effectRect, cursorVert.vert);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Scroll arrows */
|
/* Scroll arrows */
|
||||||
|
|
Loading…
Reference in New Issue