From 36e9099fca32549a9918496797d92e1a60016bf6 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 31 Jan 2007 17:04:11 +0000 Subject: Base size on height --- (limited to 'sugar-emulator') 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() -- cgit v0.9.1