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-14 14:34:34 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-02-14 14:34:34 (GMT)
commit4c192c4c73e7899e36fdfe57619c2b70b85cceb5 (patch)
tree4b0ea3f40294545726449fc53af6330e92efdc89 /sugar-emulator
parente1ef7398e288c7b53b7b50960198333b15bc65f1 (diff)
Do not exceed 1200x900
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-xsugar-emulator2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar-emulator b/sugar-emulator
index 190f98c..29b3b6f 100755
--- a/sugar-emulator
+++ b/sugar-emulator
@@ -48,7 +48,7 @@ if gtk.gdk.screen_width() / 4 * 3 == gtk.gdk.screen_height():
gtk.gdk.screen_height() <= 900)
else:
fullscreen = False
- height = gtk.gdk.screen_height() - 50
+ height = min(1200, gtk.gdk.screen_height() - 50)
width = height * 4 / 3
emulator = Emulator(width, height, fullscreen)