- right = text.surface.get_rect().width + 12
- pygame.draw.lines(self.surface, colour, True,
- [(18, y_offset), (right, y_offset),
- (right, bottom), (18, bottom)], 4)
+ right = text.surface.get_rect().width + x_offset
+ pygame.draw.lines(self.surface, border_colour, True,
+ [(x_offset, y_offset), (right, y_offset),
+ (right, bottom), (x_offset, bottom)], 4)