Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/thumbs.c
| Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | static ImBuf *thumb_create_ex( | ||||
| char cheight[40] = "0"; | char cheight[40] = "0"; | ||||
| short tsize = 128; | short tsize = 128; | ||||
| short ex, ey; | short ex, ey; | ||||
| float scaledx, scaledy; | float scaledx, scaledy; | ||||
| BLI_stat_t info; | BLI_stat_t info; | ||||
| switch (size) { | switch (size) { | ||||
| case THB_NORMAL: | case THB_NORMAL: | ||||
| tsize = 128; | tsize = PREVIEW_RENDER_DEFAULT_HEIGHT; | ||||
| break; | break; | ||||
| case THB_LARGE: | case THB_LARGE: | ||||
| tsize = 256; | tsize = PREVIEW_RENDER_DEFAULT_HEIGHT * 2; | ||||
| break; | break; | ||||
| case THB_FAIL: | case THB_FAIL: | ||||
| tsize = 1; | tsize = 1; | ||||
| break; | break; | ||||
| default: | default: | ||||
| return NULL; /* unknown size */ | return NULL; /* unknown size */ | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines | |||||