Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_view.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| if (sizex < 320) { | if (sizex < 320) { | ||||
| sizex = 320; | sizex = 320; | ||||
| } | } | ||||
| if (sizey < 256) { | if (sizey < 256) { | ||||
| sizey = 256; | sizey = 256; | ||||
| } | } | ||||
| /* changes context! */ | /* changes context! */ | ||||
| if (WM_window_open_temp( | if (WM_window_open(C, | ||||
| C, IFACE_("Blender Render"), mx, my, sizex, sizey, SPACE_IMAGE, false) == NULL) { | 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!"); | BKE_report(reports, RPT_ERROR, "Failed to open window!"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| area = CTX_wm_area(C); | area = CTX_wm_area(C); | ||||
| if (BLI_listbase_is_single(&area->spacedata) == false) { | if (BLI_listbase_is_single(&area->spacedata) == false) { | ||||
| sima = area->spacedata.first; | sima = area->spacedata.first; | ||||
| sima->flag |= SI_PREVSPACE; | sima->flag |= SI_PREVSPACE; | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||