Directly rende r borders instead of going through the active tab

This commit is contained in:
Kovid Goyal
2017-09-11 16:35:34 +05:30
parent ff6c366b8a
commit 2fff6e1cb9
3 changed files with 4 additions and 10 deletions

View File

@@ -7,8 +7,8 @@ from itertools import chain
from .constants import viewport_size
from .fast_data_types import (
BORDERS_PROGRAM, add_borders_rect, compile_program, draw_borders,
init_borders_program, send_borders_rects
BORDERS_PROGRAM, add_borders_rect, compile_program, init_borders_program,
send_borders_rects
)
from .shaders import load_shaders
from .utils import color_as_int, pt_to_px
@@ -76,6 +76,3 @@ class Borders:
g.bottom + pw
)
send_borders_rects(viewport_size.width, viewport_size.height)
def render(self):
draw_borders()