From 69f8d84663434b679f6c77a932d94418f00b78ff Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 2 Mar 2007 20:39:29 +0100 Subject: [PATCH] Make video size resolution dependent at least in the emulator. --- shell/intro/intro.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shell/intro/intro.py b/shell/intro/intro.py index 47d9b384..575ff1c1 100644 --- a/shell/intro/intro.py +++ b/shell/intro/intro.py @@ -32,9 +32,12 @@ from sugar.graphics import iconbutton import colorpicker -_VIDEO_WIDTH = 640 -_VIDEO_HEIGHT = 480 - +if env.is_emulator(): + _VIDEO_WIDTH = units.points_to_pixels(120) + _VIDEO_HEIGHT = units.points_to_pixels(120) +else: + _VIDEO_WIDTH = 640 + _VIDEO_HEIGHT = 480 class IntroImage(gtk.EventBox): __gtype_name__ = "IntroImage"