remove triangle overlays

This commit is contained in:
Chris Jones 2008-05-22 01:39:01 +01:00
parent fb948176cb
commit c35ebedfc2
2 changed files with 4 additions and 22 deletions

View File

@ -240,33 +240,16 @@ text/plain
middle = (alloc.width/2, alloc.height/2)
middleleft = (0, alloc.height/2)
middleright = (alloc.width, alloc.height/2)
overlay_type = self.conf.overlay_type
#print "%f %f %d %d" %(coef1, coef2, b1,b2)
coord = ()
if pos == "right":
#print "right"
if overlay_type == "triangle":
coord = (topright, middle, bottomright)
else:
coord = (topright, topmiddle, bottommiddle, bottomright)
coord = (topright, topmiddle, bottommiddle, bottomright)
if pos == "top":
#print "top"
if overlay_type == "triangle":
coord = (topleft, middle, topright)
else:
coord = (topleft, topright, middleright , middleleft)
coord = (topleft, topright, middleright , middleleft)
if pos == "left":
#print "left"
if overlay_type == "triangle":
coord = (topleft, middle, bottomleft)
else:
coord = (topleft, topmiddle, bottommiddle, bottomleft)
coord = (topleft, topmiddle, bottommiddle, bottomleft)
if pos == "bottom":
#print "bottom"
if overlay_type == "triangle":
coord = (bottomleft, middle, bottomright)
else:
coord = (bottomleft, bottomright, middleright , middleleft)
coord = (bottomleft, bottomright, middleright , middleleft)
if len(coord) > 0 :
context.move_to(coord[len(coord)-1][0],coord[len(coord)-1][1])

View File

@ -112,7 +112,6 @@ class TerminatorConfValuestore:
'ignore_hosts' : ['localhost','127.0.0.0/8','*.local'],
'encoding' : 'UTF-8',
'active_encodings' : ['UTF-8', 'ISO-8859-1'],
'overlay_type' : 'rectangle',
}
def __getattr__ (self, keyname):