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
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue