[Bf-blender-cvs] [93edc452920] userpref_redesign: UI: Increase default size of User-Preferences window

Julian Eisel noreply at git.blender.org
Fri Feb 23 11:08:17 CET 2018


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;



More information about the Bf-blender-cvs mailing list