diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-16 06:58:33 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-16 06:58:33 +0400 |
commit | 9031ef3e8704526db94027f0311ba0b7613afd88 (patch) | |
tree | 692543808776d931b0473425841d1a17476e4973 /source/creator | |
parent | 4683cb34e4de119d726a44e15ce683917cfd0610 (diff) |
Fix for bug #12028: background rendering on Mac OS X without
a window manager did not work anymore since 2.46.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index bdd16dc6bed..f27dee946ed 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -267,7 +267,7 @@ static void main_init_screen( void ) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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; + for(a=1; a<argc; a++) { if(argv[a][0] == '-') { switch(argv[a][1]) { |