Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_splash_screen.c
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| * first draw or if the image changed. */ | * first draw or if the image changed. */ | ||||
| ImBuf *ibuf = wm_block_splash_image(splash_width, &splash_height); | ImBuf *ibuf = wm_block_splash_image(splash_width, &splash_height); | ||||
| uiBut *but = uiDefButImage( | uiBut *but = uiDefButImage( | ||||
| block, ibuf, 0, 0.5f * U.widget_unit, splash_width, splash_height, NULL); | block, ibuf, 0, 0.5f * U.widget_unit, splash_width, splash_height, NULL); | ||||
| UI_but_func_set(but, wm_block_close, block, NULL); | UI_but_func_set(but, wm_block_close, block, NULL); | ||||
| wm_block_splash_add_label( | wm_block_splash_add_label(block, | ||||
| block, BKE_blender_version_string(), splash_width, splash_height - 13.0 * U.dpi_fac); | BKE_blender_version_string(), | ||||
| splash_width - 7.0 * U.dpi_fac, | |||||
| splash_height - 13.0 * U.dpi_fac); | |||||
| const int layout_margin_x = U.dpi_fac * 26; | const int layout_margin_x = U.dpi_fac * 26; | ||||
| uiLayout *layout = UI_block_layout(block, | uiLayout *layout = UI_block_layout(block, | ||||
| UI_LAYOUT_VERTICAL, | UI_LAYOUT_VERTICAL, | ||||
| UI_LAYOUT_PANEL, | UI_LAYOUT_PANEL, | ||||
| layout_margin_x, | layout_margin_x, | ||||
| 0, | 0, | ||||
| splash_width - (layout_margin_x * 2), | splash_width - (layout_margin_x * 2), | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||