Skip to content

Commit

Permalink
[skin] add mergeScale function for combining scales
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Sep 21, 2024
1 parent 540a66b commit ab737c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/python/skin.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ def parseScale(s):
return val


def mergeScale(s1, s2):
# merge ((w, w), (h, h)) with ((x, x), (y, y))
return ((s1[0][0] * s2[0][0], s1[0][1] * s2[0][1]), (s1[1][0] * s2[1][0], s1[1][1] * s2[1][1]))


def parseScrollbarMode(s):
from enigma import eListbox
try:
Expand Down

0 comments on commit ab737c9

Please sign in to comment.