WindowVX: Initialize all dirty flags and connect tmp tone
This commit is contained in:
		
							parent
							
								
									81ac0780f8
								
							
						
					
					
						commit
						2550fd8ccc
					
				
					 1 changed files with 17 additions and 5 deletions
				
			
		| 
						 | 
					@ -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 = false;
 | 
				
			||||||
 | 
							base.texSizeDirty = false;
 | 
				
			||||||
 | 
							base.texDirty = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (w > 0 || h > 0)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
			base.vertDirty = true;
 | 
								base.vertDirty = true;
 | 
				
			||||||
			base.texSizeDirty = true;
 | 
								base.texSizeDirty = true;
 | 
				
			||||||
		base.texDirty = true;
 | 
					 | 
				
			||||||
		ctrlVertDirty = true;
 | 
					 | 
				
			||||||
			clipRectDirty = 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue