diff options
author | Kent Mein <mein@cs.umn.edu> | 2008-03-04 21:31:57 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2008-03-04 21:31:57 +0300 |
commit | a37009f582dd83a0422bd4009d521445f4f6c5c0 (patch) | |
tree | 30f7ab46148abd57b4e207a1ab61128712fea193 /source/creator | |
parent | fe3e521e446d9ff8aba5d72dadd7a529a1f8b08c (diff) |
Small change in the logic for -w -p The previous changes didn't quite work all the time.
This should simplify things.
Kent
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index ddcdeb0741d..7ca658978f9 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -427,7 +427,6 @@ int main(int argc, char **argv) a++; sizy= atoi(argv[a]); - setprefsize(stax, stay, sizx, sizy, 0); break; case 'd': G.f |= G_DEBUG; /* std output printf's */ @@ -448,6 +447,10 @@ int main(int argc, char **argv) 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; + G.windowstate = G_WINDOWSTATE_FULLSCREEN; break; case 'R': @@ -478,10 +481,7 @@ int main(int argc, char **argv) * 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); - } + setprefsize(stax, stay, sizx, sizy, 0); BPY_start_python(argc, argv); |