- if dst_left + dst_width > 720:
- dst_width = 720 - dst_left
- if dst_top + dst_height > 576:
- dst_height = 576 - dst_top
- print "[UIPositionSetup] write dst_left : ",dst_left
- print "[UIPositionSetup] write dst_width : ",dst_width
- print "[UIPositionSetup] write dst_top : ",dst_top
- print "[UIPositionSetup] write dst_height : ",dst_height
- try:
- file = open("/proc/stb/fb/dst_left", "w")
- file.write('%X' % dst_left)
- file.close()
- file = open("/proc/stb/fb/dst_width", "w")
- file.write('%X' % dst_width)
- file.close()
- file = open("/proc/stb/fb/dst_top", "w")
- file.write('%X' % dst_top)
- file.close()
- file = open("/proc/stb/fb/dst_height", "w")
- file.write('%X' % dst_height)
- file.close()
- except: