diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2021-02-22 22:37:25 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2021-02-22 22:38:21 +0300 |
commit | be9842f65b85d64ab8b7baa686ded9c79c31227e (patch) | |
tree | 14d7dee027992adc5907162c809084eda381a46e /source/blender/editors/render/render_view.c | |
parent | 3d2d8a1aab0f0141a1a55d1cc93de60815c26946 (diff) |
UI: Simplify Window Creation
Refactoring: WM_window_open() that can open different types of windows. 'New Window' with simplified layout.
Differential Revision: https://developer.blender.org/D10419
Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/editors/render/render_view.c')
-rw-r--r-- | source/blender/editors/render/render_view.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/editors/render/render_view.c b/source/blender/editors/render/render_view.c index fd5963b217b..465438f814a 100644 --- a/source/blender/editors/render/render_view.c +++ b/source/blender/editors/render/render_view.c @@ -157,8 +157,16 @@ ScrArea *render_view_open(bContext *C, int mx, int my, ReportList *reports) } /* changes context! */ - if (WM_window_open_temp( - C, IFACE_("Blender Render"), mx, my, sizex, sizey, SPACE_IMAGE, false) == NULL) { + if (WM_window_open(C, + IFACE_("Blender Render"), + mx, + my, + sizex, + sizey, + SPACE_IMAGE, + false, + true, + WIN_ALIGN_LOCATION_CENTER) == NULL) { BKE_report(reports, RPT_ERROR, "Failed to open window!"); return NULL; } |