Merge branch 'erase-pads' into 'master'
Erase pad before resizing Closes #45 See merge request ynerant/squirrel-battle!50
This commit was merged in pull request #131.
	This commit is contained in:
		@@ -132,6 +132,7 @@ class Display:
 | 
				
			|||||||
        self.height = height
 | 
					        self.height = height
 | 
				
			||||||
        if hasattr(self, "pad") and resize_pad and \
 | 
					        if hasattr(self, "pad") and resize_pad and \
 | 
				
			||||||
                self.height >= 0 and self.width >= 0:
 | 
					                self.height >= 0 and self.width >= 0:
 | 
				
			||||||
 | 
					            self.pad.erase()
 | 
				
			||||||
            self.pad.resize(self.height + 1, self.width + 1)
 | 
					            self.pad.resize(self.height + 1, self.width + 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def refresh(self, *args, resize_pad: bool = True) -> None:
 | 
					    def refresh(self, *args, resize_pad: bool = True) -> None:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user