diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-02 19:39:29 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-02 19:39:29 (GMT) |
commit | 69f8d84663434b679f6c77a932d94418f00b78ff (patch) | |
tree | 67af65fe5034ed059ad2cc42820ed8ec4c8c247a /shell/intro | |
parent | 08c791849f8d50454017c25a7048def4918512a6 (diff) |
Make video size resolution dependent at least in the emulator.
Diffstat (limited to 'shell/intro')
-rw-r--r-- | shell/intro/intro.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/intro/intro.py b/shell/intro/intro.py index 47d9b38..575ff1c 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" |