From a37009f582dd83a0422bd4009d521445f4f6c5c0 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Tue, 4 Mar 2008 18:31:57 +0000 Subject: [PATCH] Small change in the logic for -w -p The previous changes didn't quite work all the time. This should simplify things. Kent --- source/creator/creator.c | 10 +++++----- 1 file 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);