[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13969] trunk/blender/source/creator/ creator.c: I broke it for the case where -w and -W are not called.

Kent Mein mein at cs.umn.edu
Tue Mar 4 19:38:18 CET 2008


Revision: 13969
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13969
Author:   sirdude
Date:     2008-03-04 19:38:18 +0100 (Tue, 04 Mar 2008)

Log Message:
-----------
I broke it for the case where -w and -W are not called.  This should fix that up as well.

Kent

Modified Paths:
--------------
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2008-03-04 18:31:57 UTC (rev 13968)
+++ trunk/blender/source/creator/creator.c	2008-03-04 18:38:18 UTC (rev 13969)
@@ -476,12 +476,8 @@
 			}
 		}
 
-		/* XXX, fixme zr, with borders */
-		/* there probably is a better way to do
-		* this, right now do as if blender was
-		* called with "-p 0 0 xres yres" -- sgefant
-		*/
-		setprefsize(stax, stay, sizx, sizy, 0);
+		if ( (G.windowstate == G_WINDOWSTATE_BORDER) || (G.windowstate == G_WINDOWSTATE_FULLSCREEN)) 
+			setprefsize(stax, stay, sizx, sizy, 0);
 		
 		BPY_start_python(argc, argv);
 		





More information about the Bf-blender-cvs mailing list