Forgot to set the position on rectangle so just added the center helper.
This commit is contained in:
		
							parent
							
								
									0d91c554c6
								
							
						
					
					
						commit
						7e64879f78
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -97,6 +97,8 @@ namespace guecs { | |||
|     shape->setFillColor(color); | ||||
|     shape->setOutlineColor(border_color); | ||||
|     shape->setOutlineThickness(border_px); | ||||
| 
 | ||||
|     sfml_center_helper(shape, cell, padding); | ||||
|   } | ||||
| 
 | ||||
|   void Rectangle::render(sf::RenderWindow& window, sf::Shader *shader_ptr) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zed A. Shaw
						Zed A. Shaw