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:
Jonas Kulla 2013-09-30 19:32:24 +02:00
parent 05f73f0b98
commit f49b03ba23
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,6 @@ struct WindowPrivate
refreshCursorRectCon();
controlsQuadArray.resize(14);
TileQuads::buildFrameSource(cursorSrc, controlsQuadArray.vertices.data());
cursorVert.count = 9;
pauseAniVert.count = 1;
@ -465,7 +464,8 @@ struct WindowPrivate
IntRect effectRect(cursorRect->x+16, cursorRect->y+16,
cursorRect->width, cursorRect->height);
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 */