Plane: Don't set dirty flags when settings props to existing value
This commit is contained in:
		
							parent
							
								
									b878149f5c
								
							
						
					
					
						commit
						3a3ccf590e
					
				
					 1 changed files with 16 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -136,7 +136,10 @@ void Plane::setBitmap(Bitmap *value)
 | 
			
		|||
 | 
			
		||||
void Plane::setOX(int value)
 | 
			
		||||
{
 | 
			
		||||
	GUARD_DISPOSED
 | 
			
		||||
	GUARD_DISPOSED;
 | 
			
		||||
 | 
			
		||||
	if (p->ox == value)
 | 
			
		||||
	        return;
 | 
			
		||||
 | 
			
		||||
	p->ox = value;
 | 
			
		||||
	p->quadSourceDirty = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -144,7 +147,10 @@ void Plane::setOX(int value)
 | 
			
		|||
 | 
			
		||||
void Plane::setOY(int value)
 | 
			
		||||
{
 | 
			
		||||
	GUARD_DISPOSED
 | 
			
		||||
	GUARD_DISPOSED;
 | 
			
		||||
 | 
			
		||||
	if (p->oy == value)
 | 
			
		||||
	        return;
 | 
			
		||||
 | 
			
		||||
	p->oy = value;
 | 
			
		||||
	p->quadSourceDirty = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -152,7 +158,10 @@ void Plane::setOY(int value)
 | 
			
		|||
 | 
			
		||||
void Plane::setZoomX(float value)
 | 
			
		||||
{
 | 
			
		||||
	GUARD_DISPOSED
 | 
			
		||||
	GUARD_DISPOSED;
 | 
			
		||||
 | 
			
		||||
	if (p->zoomX == value)
 | 
			
		||||
	        return;
 | 
			
		||||
 | 
			
		||||
	p->zoomX = value;
 | 
			
		||||
	p->quadSourceDirty = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -160,7 +169,10 @@ void Plane::setZoomX(float value)
 | 
			
		|||
 | 
			
		||||
void Plane::setZoomY(float value)
 | 
			
		||||
{
 | 
			
		||||
	GUARD_DISPOSED
 | 
			
		||||
	GUARD_DISPOSED;
 | 
			
		||||
 | 
			
		||||
	if (p->zoomY == value)
 | 
			
		||||
	        return;
 | 
			
		||||
 | 
			
		||||
	p->zoomY = value;
 | 
			
		||||
	p->quadSourceDirty = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue