Do not exceed 1200x900

This commit is contained in:
Marco Pesenti Gritti 2007-02-14 15:34:34 +01:00
parent e1ef7398e2
commit 4c192c4c73

View File

@ -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)