Commit: 93edc452920870bc02ff44100be4aa41df2b6fbb
Author: Julian Eisel
Date:   Thu Feb 22 17:53:42 2018 +0100
Branches: userpref_redesign
https://developer.blender.org/rB93edc452920870bc02ff44100be4aa41df2b6fbb

UI: Increase default size of User-Preferences window

Increased it by factor 1.28 (so we get a width of 1024px).
WM_window_open_temp will ensure the window fits into the screen, so didn't need 
to ensure that.

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

M       source/blender/editors/screen/screen_ops.c

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

diff --git a/source/blender/editors/screen/screen_ops.c 
b/source/blender/editors/screen/screen_ops.c
index 86a5b800c44..bfe1754adec 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -4021,9 +4021,9 @@ static void SCREEN_OT_back_to_previous(struct 
wmOperatorType *ot)
 
 static int userpref_show_invoke(bContext *C, wmOperator *op, const wmEvent 
*event)
 {
-       int sizex = 800 * UI_DPI_FAC;
-       int sizey = 480 * UI_DPI_FAC;
-       
+       const int sizex = 1024 * UI_DPI_FAC;
+       const int sizey = 614 * UI_DPI_FAC;
+
        /* changes context! */
        if (WM_window_open_temp(C, event->x, event->y, sizex, sizey, 
WM_WINDOW_USERPREFS) != NULL) {
                return OPERATOR_FINISHED;

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

Reply via email to