Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_preview.c
| Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | if (sce) { | ||||
| return sce; | return sce; | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /* new UI convention: draw is in pixel space already. */ | /* new UI convention: draw is in pixel space already. */ | ||||
| /* uses ROUNDBOX button in block to get the rect */ | /* uses UI_BTYPE_ROUNDBOX button in block to get the rect */ | ||||
| static bool ed_preview_draw_rect(ScrArea *sa, int split, int first, rcti *rect, rcti *newrect) | static bool ed_preview_draw_rect(ScrArea *sa, int split, int first, rcti *rect, rcti *newrect) | ||||
| { | { | ||||
| Render *re; | Render *re; | ||||
| RenderResult rres; | RenderResult rres; | ||||
| char name[32]; | char name[32]; | ||||
| int offx = 0; | int offx = 0; | ||||
| int newx = BLI_rcti_size_x(rect); | int newx = BLI_rcti_size_x(rect); | ||||
| int newy = BLI_rcti_size_y(rect); | int newy = BLI_rcti_size_y(rect); | ||||
| ▲ Show 20 Lines • Show All 655 Lines • Show Last 20 Lines | |||||