Skip to content

Commit

Permalink
fix slow system reaction if large text in menu or screens are deactiv…
Browse files Browse the repository at this point in the history
…ated
  • Loading branch information
iPkay committed Oct 30, 2018
1 parent b833e3e commit b4bccb4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1133,21 +1133,21 @@ def applyChanges(self):
new = '<font filename="' + type + '" name="global_large_menu" scale="' + str(scale) + '" />'
skinSearchAndReplace.append([old, new ])
old = '<font filename="/usr/share/enigma2/MetrixHD/fonts/setrixHD.ttf" name="global_large_screen" scale="100" />'
new = '<font filename="' + type + '" name="global_large_screen" scale="-1" />'
new = '<font filename="' + type + '" name="global_large_screen" scale="0" />'
skinSearchAndReplace.append([old, new ])
elif config.plugins.MyMetrixLiteOther.SkinDesignShowLargeText.value == "screens":
old = '<font filename="/usr/share/enigma2/MetrixHD/fonts/setrixHD.ttf" name="global_large_menu" scale="100" />'
new = '<font filename="' + type + '" name="global_large_menu" scale="-1" />'
new = '<font filename="' + type + '" name="global_large_menu" scale="0" />'
skinSearchAndReplace.append([old, new ])
old = '<font filename="/usr/share/enigma2/MetrixHD/fonts/setrixHD.ttf" name="global_large_screen" scale="100" />'
new = '<font filename="' + type + '" name="global_large_screen" scale="' + str(scale) + '" />'
skinSearchAndReplace.append([old, new ])
else:
old = '<font filename="/usr/share/enigma2/MetrixHD/fonts/setrixHD.ttf" name="global_large_menu" scale="100" />'
new = '<font filename="' + type + '" name="global_large_menu" scale="-1" />'
new = '<font filename="' + type + '" name="global_large_menu" scale="0" />'
skinSearchAndReplace.append([old, new ])
old = '<font filename="/usr/share/enigma2/MetrixHD/fonts/setrixHD.ttf" name="global_large_screen" scale="100" />'
new = '<font filename="' + type + '" name="global_large_screen" scale="-1" />'
new = '<font filename="' + type + '" name="global_large_screen" scale="0" />'
skinSearchAndReplace.append([old, new ])

type = config.plugins.MyMetrixLiteFonts.globalsmall_type.value
Expand Down Expand Up @@ -2282,7 +2282,7 @@ def optionEHD(self, sourceFile, targetFile):
strnew = line[n1:n2+1] + " " + ynew
line = line[:n1] + strnew + line[n3:]
#scale="100"
if 'scale="' in line and not 'scale="-1"' in line and fontsize != 2:
if 'scale="' in line and not 'scale="0"' in line and fontsize != 2:
n1 = line.find('scale="', 0)
n2 = line.find('"', n1)
n3 = line.find('"', n2+1)
Expand Down

0 comments on commit b4bccb4

Please sign in to comment.