Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-emulator
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-02-23 14:45:54 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-02-23 14:45:54 (GMT)
commit97e64751cccc3f31dedbd184afc049daf0301afc (patch)
tree9591c654d2a54b6b6cc8adc59dbb9df75ad93b49 /sugar-emulator
parent7cfeb76d4a569fdbacc968bf7514c96bad1f23e3 (diff)
Remove hacks for wide screens, now we support them.
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-xsugar-emulator14
1 files changed, 6 insertions, 8 deletions
diff --git a/sugar-emulator b/sugar-emulator
index 1567458..a163fce 100755
--- a/sugar-emulator
+++ b/sugar-emulator
@@ -42,16 +42,14 @@ if len(sys.argv) == 1:
else:
program = sys.argv[1]
-# Various things in sugar currently depend on the screen size being in
-# a width:height porportion of 4:3.
-width = height = -1
-if gtk.gdk.screen_width() / 4 * 3 == gtk.gdk.screen_height():
- fullscreen = (gtk.gdk.screen_width() <= 1200 or
- gtk.gdk.screen_height() <= 900)
+if gtk.gdk.screen_width() < 1200 or gtk.gdk.screen_height() < 900:
+ fullscreen = True
+ width = -1
+ height = -1
else:
fullscreen = False
- height = min(900, gtk.gdk.screen_height() - 50)
- width = height * 4 / 3
+ width = 1200
+ height = 900
emulator = Emulator(width, height, fullscreen)
emulator.start()