Remove hacks for wide screens, now we support them.
This commit is contained in:
parent
7cfeb76d4a
commit
97e64751cc
@ -42,16 +42,14 @@ if len(sys.argv) == 1:
|
|||||||
else:
|
else:
|
||||||
program = sys.argv[1]
|
program = sys.argv[1]
|
||||||
|
|
||||||
# Various things in sugar currently depend on the screen size being in
|
if gtk.gdk.screen_width() < 1200 or gtk.gdk.screen_height() < 900:
|
||||||
# a width:height porportion of 4:3.
|
fullscreen = True
|
||||||
width = height = -1
|
width = -1
|
||||||
if gtk.gdk.screen_width() / 4 * 3 == gtk.gdk.screen_height():
|
height = -1
|
||||||
fullscreen = (gtk.gdk.screen_width() <= 1200 or
|
|
||||||
gtk.gdk.screen_height() <= 900)
|
|
||||||
else:
|
else:
|
||||||
fullscreen = False
|
fullscreen = False
|
||||||
height = min(900, gtk.gdk.screen_height() - 50)
|
width = 1200
|
||||||
width = height * 4 / 3
|
height = 900
|
||||||
|
|
||||||
emulator = Emulator(width, height, fullscreen)
|
emulator = Emulator(width, height, fullscreen)
|
||||||
emulator.start()
|
emulator.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user