[Sugar-devel] [PATCH] Reduce default emulator resolution to 1024x768

Sascha Silbe sascha-ml-ui-sugar-devel at silbe.org
Thu Feb 19 06:39:10 EST 2009


On Thu, Feb 19, 2009 at 12:22:50PM +0100, Bernie Innocenti wrote:

>       if dimensions is not None:
>           cmd.append('-screen')
>           cmd.append(dimensions)
> -    elif gtk.gdk.screen_width() < 1200 or gtk.gdk.screen_height() < 
> 900:
> +    elif gtk.gdk.screen_width() < DEFAULT_WIDTH or \
> +            gtk.gdk.screen_height() < DEFAULT_HEIGHT:
>           cmd.append('-fullscreen')
>       else:
>           cmd.append('-screen')
> -        cmd.append('%dx%d' % (1200, 900))
> +        cmd.append('%dx%d' % (DEFAULT_WIDTH, DEFAULT_HEIGHT))
Is it on purpose that non-default dimensions can be set (see first three 
lines) but for determining whether fullscreen will be used the default 
dimensions get examined instead?
Yes, that part isn't changed by the patch and I've wondered about it 
before, but not bothered to ask. :)

CU Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090219/3e3cc26d/attachment.pgp 


More information about the Sugar-devel mailing list