From 4c192c4c73e7899e36fdfe57619c2b70b85cceb5 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 14 Feb 2007 15:34:34 +0100 Subject: [PATCH] Do not exceed 1200x900 --- sugar-emulator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar-emulator b/sugar-emulator index 190f98c3..29b3b6fd 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)