From f49b03ba236af01bc01aa0c7c5b4e1998dcab313 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Mon, 30 Sep 2013 19:32:24 +0200 Subject: [PATCH] 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. --- src/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index 000aa65..1c961a7 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -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 */