def renderBorder(self, clipped):
        '''Render the border in relative coordinates clipped to the
        indicated view.
        '''
        if self.border is None: return
        ox, oy = 0, 0
        ox2, oy2 = self.width, self.height
        cx, cy = clipped.bottomleft
        cx2, cy2 = clipped.topright

        glColor4f(*self.border)
        glBegin(GL_LINES)
        # left
        if ox == cx:
            glVertex2f(ox, cy)
            glVertex2f(ox, cy2)
        # right
        if ox2 == cx2:
            glVertex2f(ox2-1, cy)
            glVertex2f(ox2+1, cy2)
        # bottom
        if oy == cy:
            glVertex2f(cx, oy)
            glVertex2f(cx2, oy)
        # top
        if oy2 == cy2:
            glVertex2f(cx, oy2-1)
            glVertex2f(cx2, oy2-1)

        glEnd()
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/element.py/Element.renderBorder/operator `-` -> `+`