Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mainscreen.py
diff options
context:
space:
mode:
authorLive System User <liveuser@localhost.localdomain>2009-02-26 03:17:26 (GMT)
committer Live System User <liveuser@localhost.localdomain>2009-02-26 03:17:26 (GMT)
commite0085fa68f82c5dd5c0320e4cd8a49c128a0adbc (patch)
treefb4793494d2c142076ed7892020d7c04d5f5be84 /mainscreen.py
parentc6619e0bec3cb53fdb42f35cb26b24fbbb2cdfce (diff)
Resolution independent medal images.
Diffstat (limited to 'mainscreen.py')
-rw-r--r--mainscreen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mainscreen.py b/mainscreen.py
index 6c3735a..c459ac4 100644
--- a/mainscreen.py
+++ b/mainscreen.py
@@ -183,8 +183,10 @@ class MainScreen(gtk.VBox):
'silver': 'images/silver-medal.svg',
'gold': 'images/gold-medal.svg'
}
+
+ medal_size = int(2.0 * sugar.graphics.style.GRID_CELL_SIZE)
medalpixbuf = gtk.gdk.pixbuf_new_from_file(images[medal_type])
- medalpixbuf = medalpixbuf.scale_simple(200, 200, gtk.gdk.INTERP_BILINEAR)
+ medalpixbuf = medalpixbuf.scale_simple(medal_size, medal_size, gtk.gdk.INTERP_BILINEAR)
medalimage = gtk.Image()
medalimage.set_from_pixbuf(medalpixbuf)