[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13977] trunk/blender/source/creator/ creator.c:

Kent Mein mein at cs.umn.edu
Wed Mar 5 16:46:18 CET 2008


In reply to Brecht Van Lommel (brechtvanlommel at pandora.be):

Thanks, I forgot some people might call blender with -w and not -p.
Sorry about that, should have tested more.

Now that I think about it a little bit more though, I'm wondering if we
shouldn't move this initalization for both -w and -W up above the loop.  
that way the following are equal where currently they are not:
blender -w -p 0 0 500 500	(will give a 500 500 window)
blender -p 0 0 500 500 -w 	(will give full screen currently which
is probably wrong)

Kent

> Revision: 13977
>           http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13977
> Author:   blendix
> Date:     2008-03-05 12:42:40 +0100 (Wed, 05 Mar 2008)
> 
> Log Message:
> -----------
> 
> Bugfix: recent command line changes broke running with ./blender -w,
> was using uninitialized variables.
> 
> Modified Paths:
> --------------
>     trunk/blender/source/creator/creator.c
> 
> Modified: trunk/blender/source/creator/creator.c
> ===================================================================
> --- trunk/blender/source/creator/creator.c	2008-03-05 10:03:31 UTC (rev 13976)
> +++ trunk/blender/source/creator/creator.c	2008-03-05 11:42:40 UTC (rev 13977)
> @@ -442,6 +442,10 @@
>  					break;
>              
>  				case 'w':
> +					winlay_get_screensize(&sizx, &sizy);
> +					stax=0;
> +					stay=0;
> +
>  					G.windowstate = G_WINDOWSTATE_BORDER;
>  					break;
>  				case 'W':
> 
> 
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs

-- 
mein at cs.umn.edu
http://www.cs.umn.edu/~mein


More information about the Bf-committers mailing list