[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13945] trunk/blender/source/creator/ creator.c: blenders window argument -w / -W didnt use the last argument as command line arg should.

Campbell Barton ideasman42 at gmail.com
Sun Mar 2 23:09:43 CET 2008


Revision: 13945
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13945
Author:   campbellbarton
Date:     2008-03-02 23:09:40 +0100 (Sun, 02 Mar 2008)

Log Message:
-----------
blenders window argument -w / -W didnt use the last argument as command line arg should.

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

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2008-03-02 22:01:43 UTC (rev 13944)
+++ trunk/blender/source/creator/creator.c	2008-03-02 22:09:40 UTC (rev 13945)
@@ -438,13 +438,6 @@
 					break;
             
 				case 'w':
-					/* 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
-					 */ 
-					winlay_get_screensize(&sizx, &sizy);
-					setprefsize(0, 0, sizx, sizy, 1);
 					G.windowstate = G_WINDOWSTATE_BORDER;
 					break;
 				case 'W':
@@ -475,6 +468,16 @@
 			}
 		}
 
+		/* 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
+		*/
+		if (G.windowstate == G_WINDOWSTATE_BORDER) {
+			winlay_get_screensize(&sizx, &sizy);
+			setprefsize(0, 0, sizx, sizy, 1);
+		}
+		
 		BPY_start_python(argc, argv);
 		
 		/**





More information about the Bf-blender-cvs mailing list