diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-28 12:24:47 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-28 12:24:47 (GMT) |
commit | b473b4f17cd65115fc4fadd8a71d30fef5066cb5 (patch) | |
tree | fe7c1e06bf234ebd69cae532ed634d5a3616d912 /sugar-emulator | |
parent | 3baf796d83db5dae38afa8e4ad82a459023aad5d (diff) |
Pass the X dpi to Xephyr. Default to a minimum of 96, some distros appear to be broken.
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-x | sugar-emulator | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sugar-emulator b/sugar-emulator index a163fce..f951649 100755 --- a/sugar-emulator +++ b/sugar-emulator @@ -36,6 +36,7 @@ else: from sugar import env from sugar import util from sugar.emulator import Emulator +import _sugar if len(sys.argv) == 1: program = 'sugar-shell' @@ -51,7 +52,9 @@ else: width = 1200 height = 900 -emulator = Emulator(width, height, fullscreen) +dpi = min(_sugar.get_screen_dpi(), 96) + +emulator = Emulator(width, height, fullscreen, dpi) emulator.start() if sourcedir: |