[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16548] trunk/blender/source/creator/ creator.c: Fix for bug #12028: background rendering on Mac OS X without
Brecht Van Lommel
brechtvanlommel at pandora.be
Tue Sep 16 04:58:34 CEST 2008
Revision: 16548
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16548
Author: blendix
Date: 2008-09-16 04:58:33 +0200 (Tue, 16 Sep 2008)
Log Message:
-----------
Fix for bug #12028: background rendering on Mac OS X without
a window manager did not work anymore since 2.46.
Modified Paths:
--------------
trunk/blender/source/creator/creator.c
Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c 2008-09-15 22:08:30 UTC (rev 16547)
+++ trunk/blender/source/creator/creator.c 2008-09-16 02:58:33 UTC (rev 16548)
@@ -267,7 +267,7 @@
int main(int argc, char **argv)
{
- int a, i, stax=0, stay=0, sizx, sizy, scr_init = 0;
+ int a, i, stax, stay, sizx, sizy, scr_init = 0;
SYS_SystemHandle syshandle;
#if defined(WIN32) || defined (__linux__)
@@ -301,10 +301,10 @@
setprefsize(left +10,scr_y - bottom +10,right-left -20,bottom - 64, 0);
} else {
- winlay_get_screensize(&scr_x, &scr_y);
+ winlay_get_screensize(&scr_x, &scr_y);
- /* 40 + 684 + (headers) 22 + 22 = 768, the powerbook screen height */
- setprefsize(120, 40, 850, 684, 0);
+ /* 40 + 684 + (headers) 22 + 22 = 768, the powerbook screen height */
+ setprefsize(120, 40, 850, 684, 0);
}
winlay_process_events(0);
@@ -430,11 +430,11 @@
init_def_material();
- winlay_get_screensize(&sizx, &sizy);
- stax=0;
- stay=0;
+ if(G.background==0) {
+ winlay_get_screensize(&sizx, &sizy);
+ stax=0;
+ stay=0;
- if(G.background==0) {
for(a=1; a<argc; a++) {
if(argv[a][0] == '-') {
switch(argv[a][1]) {
More information about the Bf-blender-cvs
mailing list