Don't refresh pads with invalid coordinates. The window should be fully resizable, closes #20
This commit is contained in:
@ -36,4 +36,5 @@ class MapDisplay(Display):
|
||||
pmincol = max(0, min(self.pack.tile_width * self.map.width, pmincol))
|
||||
self.pad.clear()
|
||||
self.update_pad()
|
||||
self.pad.refresh(pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)
|
||||
self.refresh_pad(self.pad, pminrow, pmincol, sminrow, smincol, smaxrow,
|
||||
smaxcol)
|
||||
|
Reference in New Issue
Block a user