From 602dced23b5f8adc0981469ef967b9a833a272b1 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 19 Nov 2009 13:31:07 +0000 Subject: using /etc/olpc-release to detect XO hardware for font scaling --- (limited to 'tawindow.py') diff --git a/tawindow.py b/tawindow.py index f71e4c9..c357320 100644 --- a/tawindow.py +++ b/tawindow.py @@ -104,7 +104,7 @@ def twNew(win, path, lang, parent=None): tw.area = win.window tw.gc = tw.area.new_gc() # on an OLPC-XO-1, there is a scaling factor - if os.path.exists('/sys/power/olpc-pm'): + if os.path.exists('/etc/olpc-release'): tw.lead = 1.6 tw.scale = 1.0 else: -- cgit v0.9.1