aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-10 11:43:55 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-10 11:43:55 +0000
commit9d6a8d76cda984f103dee9e3511fefffc4c02bb1 (patch)
tree0b4c936bd97f419099402977aa94881418aa4212 /lib/python/Components
parent9f9c513165bbcae496b79656304e60bf74557af4 (diff)
downloadenigma2-9d6a8d76cda984f103dee9e3511fefffc4c02bb1.tar.gz
enigma2-9d6a8d76cda984f103dee9e3511fefffc4c02bb1.zip
fix
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/EpgList.py43
1 files changed, 21 insertions, 22 deletions
diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py
index 53832b1b..26d712e6 100644
--- a/lib/python/Components/EpgList.py
+++ b/lib/python/Components/EpgList.py
@@ -88,28 +88,27 @@ class EPGList(HTMLComponent, GUIComponent):
self.instance = None
def recalcEntrySize(self):
- t = time()
- esize = self.l.getItemSize()
- self.l.setFont(0, gFont("Regular", 22))
- self.l.setFont(1, gFont("Regular", 16))
- width = esize.width()
- height = esize.height()
- if self.type == EPG_TYPE_SINGLE:
- w = width/20*5
- self.datetime_rect = Rect(0,0, w, height)
- self.descr_rect = Rect(w, 0, width/20*15, height)
- else:
- xpos = 0;
- w = width/10*3;
- self.service_rect = Rect(xpos, 0, w-10, height)
- xpos += w;
- w = width/10*2;
- self.start_end_rect = Rect(xpos, 0, w-10, height)
- self.progress_rect = Rect(xpos, 4, w-10, height-8)
- xpos += w
- w = width/10*5;
- self.descr_rect = Rect(xpos, 0, width, height)
- print "recalcEntrySize", time() - t
+ if SINGLE_CPP == 0:
+ esize = self.l.getItemSize()
+ self.l.setFont(0, gFont("Regular", 22))
+ self.l.setFont(1, gFont("Regular", 16))
+ width = esize.width()
+ height = esize.height()
+ if self.type == EPG_TYPE_SINGLE:
+ w = width/20*5
+ self.datetime_rect = Rect(0,0, w, height)
+ self.descr_rect = Rect(w, 0, width/20*15, height)
+ else:
+ xpos = 0;
+ w = width/10*3;
+ self.service_rect = Rect(xpos, 0, w-10, height)
+ xpos += w;
+ w = width/10*2;
+ self.start_end_rect = Rect(xpos, 0, w-10, height)
+ self.progress_rect = Rect(xpos, 4, w-10, height-8)
+ xpos += w
+ w = width/10*5;
+ self.descr_rect = Rect(xpos, 0, width, height)
def buildSingleEntry(self, eventId, beginTime, duration, EventName):
r1=self.datetime_rect