diff options
author | Kent Mein <mein@cs.umn.edu> | 2008-03-06 00:11:24 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2008-03-06 00:11:24 +0300 |
commit | 18fc43950d84995c7433295e8dfce065dc08ae67 (patch) | |
tree | 0459df0e8af4d967ccdd04b81a1d80231915aa32 /source/creator/creator.c | |
parent | 715a721c4bb7cf15cd66c1394589907d94e15cb3 (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/creator.c')
-rw-r--r-- | source/creator/creator.c | 15 |
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': |