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-01-31 17:04:11 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-01-31 17:04:11 (GMT)
commit36e9099fca32549a9918496797d92e1a60016bf6 (patch)
treedcdacdd0c642bafab6e68ce8c8191fed07b8c32e /sugar-emulator
parent2646f333b34fa0115b880182171091c7bb250383 (diff)
Base size on height
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-xsugar-emulator4
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar-emulator b/sugar-emulator
index 2e186a2..8d6c228 100755
--- a/sugar-emulator
+++ b/sugar-emulator
@@ -84,8 +84,8 @@ if gtk.gdk.screen_width() / 4 * 3 == gtk.gdk.screen_height():
gtk.gdk.screen_height() <= 900)
else:
fullscreen = False
- width = gtk.gdk.screen_width() - 50
- height = width / 4 * 3
+ height = gtk.gdk.screen_height() - 50
+ width = height * 4 / 3
emulator = Emulator(width, height, fullscreen)
emulator.start()