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 16:30:57 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-01-31 16:30:57 (GMT)
commit90d0c41cc97d4a07a2d97596ff37ee69b081c172 (patch)
treedae202ec979ffa7a4122f375eb17fd62338ba58b /sugar-emulator
parentf196eb264e4ce8c37fdd169f5d7c7c02f158d6a4 (diff)
Try to deal with wide screens
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-xsugar-emulator4
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar-emulator b/sugar-emulator
index 4be7de5..aa620af 100755
--- a/sugar-emulator
+++ b/sugar-emulator
@@ -79,7 +79,9 @@ else:
program = sys.argv[1]
fullscreen = (gtk.gdk.screen_width() <= 1200 or
- gtk.gdk.screen_height() <= 900)
+ gtk.gdk.screen_height() <= 900) and \
+ (gtk.gdk.screen_width() / 4 * 3 ==
+ gtk.gdk.screen_height())
emulator = Emulator(fullscreen)
emulator.start()