Starting blender with -w does not switch of maximize anymore, so with and without the -w arg, the window should start maximized.

This commit is contained in:
2007-04-17 18:15:31 +00:00
parent b95f4ba2ad
commit 9c8bc4badc
3 changed files with 7 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ void splash(void * data, int datasizei, char * string);
void screen_delayed_undo_push(char *name);
void screenmain(void);
void getdisplaysize(void);
void setprefsize(int stax, int stay, int sizx, int sizy);
void setprefsize(int stax, int stay, int sizx, int sizy, int maximized);
void calc_arearcts(struct ScrArea *sa);
void resize_screen(int x, int y, int w, int h);
struct ScrArea *closest_bigger_area(void);

View File

@@ -1564,7 +1564,7 @@ void mainwindow_set_filename_to_title(char *filename)
/* ********* AREAS ************* */
void setprefsize(int stax, int stay, int sizx, int sizy)
void setprefsize(int stax, int stay, int sizx, int sizy, int maximized)
{
int scrwidth, scrheight;
@@ -1588,7 +1588,7 @@ void setprefsize(int stax, int stay, int sizx, int sizy)
prefsizx= sizx;
prefsizy= sizy;
start_maximized= 0;
start_maximized= maximized;
}

View File

@@ -268,13 +268,13 @@ int main(int argc, char **argv)
winlay_get_screensize(&scr_x, &scr_y);
getMacAvailableBounds(&top, &left, &bottom, &right);
setprefsize(left +10,scr_y - bottom +10,right-left -20,bottom - 64);
setprefsize(left +10,scr_y - bottom +10,right-left -20,bottom - 64, 0);
} else {
winlay_get_screensize(&scr_x, &scr_y);
/* 40 + 684 + (headers) 22 + 22 = 768, the powerbook screen height */
setprefsize(120, 40, 850, 684);
setprefsize(120, 40, 850, 684, 0);
}
winlay_process_events(0);
@@ -412,7 +412,7 @@ int main(int argc, char **argv)
a++;
sizy= atoi(argv[a]);
setprefsize(stax, stay, sizx, sizy);
setprefsize(stax, stay, sizx, sizy, 0);
break;
case 'd':
G.f |= G_DEBUG; /* std output printf's */
@@ -434,7 +434,7 @@ int main(int argc, char **argv)
* called with "-p 0 0 xres yres" -- sgefant
*/
winlay_get_screensize(&sizx, &sizy);
setprefsize(0, 0, sizx, sizy);
setprefsize(0, 0, sizx, sizy, 1);
G.windowstate = G_WINDOWSTATE_BORDER;
break;
case 'W':