Some leftover unused code from the bg image merge
This commit is contained in:
Kovid Goyal 2020-02-02 20:09:17 +05:30
parent 7432a7f346
commit 5b4e0ed483
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -61,12 +61,10 @@ class Borders:
current_layout,
extra_blank_rects,
draw_window_borders=True,
draw_blank_rects=False
):
add_borders_rect(self.os_window_id, self.tab_id, 0, 0, 0, 0, BorderColor.default_bg)
if draw_blank_rects:
for br in chain(current_layout.blank_rects, extra_blank_rects):
add_borders_rect(self.os_window_id, self.tab_id, *br, BorderColor.default_bg)
for br in chain(current_layout.blank_rects, extra_blank_rects):
add_borders_rect(self.os_window_id, self.tab_id, *br, BorderColor.default_bg)
bw, pw = self.border_width, self.padding_width
if bw + pw <= 0:
return