forked from bartvdbraak/blender
Small change in the logic for -w -p The previous changes didn't quite work all the time.
This should simplify things. Kent
This commit is contained in:
parent
fe3e521e44
commit
a37009f582
@ -427,7 +427,6 @@ int main(int argc, char **argv)
|
|||||||
a++;
|
a++;
|
||||||
sizy= atoi(argv[a]);
|
sizy= atoi(argv[a]);
|
||||||
|
|
||||||
setprefsize(stax, stay, sizx, sizy, 0);
|
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
G.f |= G_DEBUG; /* std output printf's */
|
G.f |= G_DEBUG; /* std output printf's */
|
||||||
@ -448,6 +447,10 @@ int main(int argc, char **argv)
|
|||||||
case 'W':
|
case 'W':
|
||||||
/* XXX, fixme zr, borderless on win32 */
|
/* XXX, fixme zr, borderless on win32 */
|
||||||
/* now on all platforms as of 20070411 - DJC */
|
/* now on all platforms as of 20070411 - DJC */
|
||||||
|
winlay_get_screensize(&sizx, &sizy);
|
||||||
|
stax=0;
|
||||||
|
stay=0;
|
||||||
|
|
||||||
G.windowstate = G_WINDOWSTATE_FULLSCREEN;
|
G.windowstate = G_WINDOWSTATE_FULLSCREEN;
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
@ -478,10 +481,7 @@ int main(int argc, char **argv)
|
|||||||
* this, right now do as if blender was
|
* this, right now do as if blender was
|
||||||
* called with "-p 0 0 xres yres" -- sgefant
|
* called with "-p 0 0 xres yres" -- sgefant
|
||||||
*/
|
*/
|
||||||
if (G.windowstate == G_WINDOWSTATE_BORDER) {
|
setprefsize(stax, stay, sizx, sizy, 0);
|
||||||
winlay_get_screensize(&sizx, &sizy);
|
|
||||||
setprefsize(0, 0, sizx, sizy, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
BPY_start_python(argc, argv);
|
BPY_start_python(argc, argv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user