Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_edit.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| eSpace_Type space_type, | eSpace_Type space_type, | ||||
| int display_type, | int display_type, | ||||
| bool dialog) | bool dialog) | ||||
| { | { | ||||
| ScrArea *area = NULL; | ScrArea *area = NULL; | ||||
| switch (display_type) { | switch (display_type) { | ||||
| case USER_TEMP_SPACE_DISPLAY_WINDOW: | case USER_TEMP_SPACE_DISPLAY_WINDOW: | ||||
| if (WM_window_open_temp(C, title, x, y, sizex, sizey, (int)space_type, dialog)) { | if (WM_window_open(C, | ||||
| title, | |||||
| x, | |||||
| y, | |||||
| sizex, | |||||
| sizey, | |||||
| (int)space_type, | |||||
| dialog, | |||||
| true, | |||||
| WIN_ALIGN_LOCATION_CENTER)) { | |||||
| area = CTX_wm_area(C); | area = CTX_wm_area(C); | ||||
| } | } | ||||
| break; | break; | ||||
| case USER_TEMP_SPACE_DISPLAY_FULLSCREEN: { | case USER_TEMP_SPACE_DISPLAY_FULLSCREEN: { | ||||
| ScrArea *ctx_area = CTX_wm_area(C); | ScrArea *ctx_area = CTX_wm_area(C); | ||||
| if (ctx_area != NULL && ctx_area->full) { | if (ctx_area != NULL && ctx_area->full) { | ||||
| area = ctx_area; | area = ctx_area; | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||