Commit: 3eaa408cb320bd4bd77d0518d351f861cce9eabf
Author: Arto Kitula
Date:   Sun Mar 11 12:26:43 2018 +0200
Branches: master
https://developer.blender.org/rB3eaa408cb320bd4bd77d0518d351f861cce9eabf

Fix T54274, and rename option --window-borderless to --window-fullscreen

===================================================================

M       source/blender/windowmanager/intern/wm_window.c
M       source/creator/creator_args.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_window.c 
b/source/blender/windowmanager/intern/wm_window.c
index bf3d28e39e0..ceb51171021 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -448,12 +448,7 @@ static void wm_window_ghostwindow_add(wmWindowManager *wm, 
const char *title, wm
        
        ghostwin = GHOST_CreateWindow(g_system, title,
                                      win->posx, posy, win->sizex, win->sizey,
-#ifdef __APPLE__
-                                     /* we agreed to not set any fullscreen or 
iconized state on startup */
-                                     GHOST_kWindowStateNormal,
-#else
                                      (GHOST_TWindowState)win->windowstate,
-#endif
                                      GHOST_kDrawingContextTypeOpenGL,
                                      glSettings);
        
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 45af1581740..99fa876d64d 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -505,7 +505,7 @@ static int arg_handle_print_help(int UNUSED(argc), const 
char **UNUSED(argv), vo
        printf("\n");
        printf("Window Options:\n");
        BLI_argsPrintArgDoc(ba, "--window-border");
-       BLI_argsPrintArgDoc(ba, "--window-borderless");
+       BLI_argsPrintArgDoc(ba, "--window-fullscreen");
        BLI_argsPrintArgDoc(ba, "--window-geometry");
        BLI_argsPrintArgDoc(ba, "--start-console");
        BLI_argsPrintArgDoc(ba, "--no-native-pixels");
@@ -972,7 +972,7 @@ static int arg_handle_with_borders(int UNUSED(argc), const 
char **UNUSED(argv),
 }
 
 static const char arg_handle_without_borders_doc[] =
-"\n\tForce opening without borders."
+"\n\tForce opening in fullscreen mode."
 ;
 static int arg_handle_without_borders(int UNUSED(argc), const char 
**UNUSED(argv), void *UNUSED(data))
 {
@@ -1892,7 +1892,7 @@ void main_args_setup(bContext *C, bArgs *ba, 
SYS_SystemHandle *syshandle)
        /* second pass: custom window stuff */
        BLI_argsAdd(ba, 2, "-p", "--window-geometry", 
CB(arg_handle_window_geometry), NULL);
        BLI_argsAdd(ba, 2, "-w", "--window-border", 
CB(arg_handle_with_borders), NULL);
-       BLI_argsAdd(ba, 2, "-W", "--window-borderless", 
CB(arg_handle_without_borders), NULL);
+       BLI_argsAdd(ba, 2, "-W", "--window-fullscreen", 
CB(arg_handle_without_borders), NULL);
        BLI_argsAdd(ba, 2, "-con", "--start-console", 
CB(arg_handle_start_with_console), NULL);
        BLI_argsAdd(ba, 2, "-R", NULL, CB(arg_handle_register_extension), NULL);
        BLI_argsAdd(ba, 2, "-r", NULL, CB_EX(arg_handle_register_extension, 
silent), ba);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to