Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2008-03-06 00:11:24 +0300
committerKent Mein <mein@cs.umn.edu>2008-03-06 00:11:24 +0300
commit18fc43950d84995c7433295e8dfce065dc08ae67 (patch)
tree0459df0e8af4d967ccdd04b81a1d80231915aa32 /source/creator
parent715a721c4bb7cf15cd66c1394589907d94e15cb3 (diff)
I didn't get any comments so I'm assuming its a good idea.
This makes it so the following are equal. blender -w -p 0 0 500 500 blender -p 0 0 500 500 -w Just move initalization for full screen to before the loop starts. so it doesn't matter where a -p shows up to override fullscreen. Kent
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 7b2651ba10a..b7a756949f1 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -409,6 +409,10 @@ int main(int argc, char **argv)
init_def_material();
+ winlay_get_screensize(&sizx, &sizy);
+ stax=0;
+ stay=0;
+
if(G.background==0) {
for(a=1; a<argc; a++) {
if(argv[a][0] == '-') {
@@ -442,19 +446,10 @@ int main(int argc, char **argv)
break;
case 'w':
- winlay_get_screensize(&sizx, &sizy);
- stax=0;
- stay=0;
-
G.windowstate = G_WINDOWSTATE_BORDER;
break;
case 'W':
- /* XXX, fixme zr, borderless on win32 */
- /* now on all platforms as of 20070411 - DJC */
- winlay_get_screensize(&sizx, &sizy);
- stax=0;
- stay=0;
-
+ /* XXX, fixme mein, borderless on OSX */
G.windowstate = G_WINDOWSTATE_FULLSCREEN;
break;
case 'R':