Permalink
Browse files

Now calculates right the center of the screen when creating the XML f…

…or the DVD menues
  • Loading branch information...
1 parent c6dca61 commit 0ac5d786265b2e0dccf1c1fb0291cc0d04bc7c78 Sergio Costas committed Dec 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 devede_xml_menu.py
View
@@ -600,15 +600,15 @@ def create_menu_stream(self,first_element,nelement):
if has_previous:
fichero.write('<button name="boton'+str(nelement)+'p"')
- fichero.write(' x0="0" y0="'+str(int(pos_y3))+'" x1="'+str(int((self.left_margin+self.right_margin)/2))+'" y1="'+str(int(pos_y3+inc_y-2))+'"')
+ fichero.write(' x0="0" y0="'+str(int(pos_y3))+'" x1="'+str(int(((720-(self.left_margin+self.right_margin))/2)-1))+'" y1="'+str(int(pos_y3+inc_y-2))+'"')
fichero.write(' up="boton'+str(nelement)+'x'+str(cantidad-1)+'"')
if has_next:
fichero.write(' right="boton'+str(nelement)+'n"')
fichero.write(' > </button>\n')
if has_next:
fichero.write('<button name="boton'+str(nelement)+'n"')
- fichero.write(' x0="'+str(int((self.left_margin+2+self.right_margin)/2))+'" y0="'+str(int(pos_y3))+'" x1="719" y1="'+str(int(pos_y3+inc_y-2))+'"')
+ fichero.write(' x0="'+str(int(((720-(self.left_margin+self.right_margin))/2)+1))+'" y0="'+str(int(pos_y3))+'" x1="719" y1="'+str(int(pos_y3+inc_y-2))+'"')
fichero.write(' up="boton'+str(nelement)+'x'+str(cantidad-1)+'"')
if has_previous:
fichero.write(' left="boton'+str(nelement)+'p"')

0 comments on commit 0ac5d78

Please sign in to comment.