forked from bartvdbraak/blender
WM: update splash size for templates
This commit is contained in:
parent
9454359a16
commit
2e685136c4
@ -1950,7 +1950,7 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *UNUSED(ar
|
||||
ibuf_template = IMB_loadiffname(splash_filepath, IB_rect, NULL);
|
||||
if (ibuf_template) {
|
||||
const int x_expect = ibuf->x;
|
||||
const int y_expect = 230 * (int)U.pixelsize;
|
||||
const int y_expect = 282 * (int)U.pixelsize;
|
||||
/* don't cover the header text */
|
||||
if (ibuf_template->x == x_expect && ibuf_template->y == y_expect) {
|
||||
memcpy(ibuf->rect, ibuf_template->rect, ibuf_template->x * ibuf_template->y * sizeof(char[4]));
|
||||
|
Loading…
Reference in New Issue
Block a user