Fix for problems in previous commit when buildinfo wasn't enabled.
This commit is contained in:
@@ -963,15 +963,18 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *arg_unuse
|
||||
ver_width = BLF_width(version_str);
|
||||
rev_width = BLF_width(revision_str)-7;
|
||||
#endif NAN_BUILDINFO
|
||||
|
||||
|
||||
block= uiBeginBlock(C, ar, "_popup", UI_EMBOSS);
|
||||
uiBlockSetFlag(block, UI_BLOCK_KEEP_OPEN|UI_BLOCK_RET_1);
|
||||
|
||||
but= uiDefBut(block, BUT_IMAGE, 0, "", 0, 10, 501, 282, NULL, 0.0, 0.0, 0, 0, "");
|
||||
uiButSetFunc(but, wm_block_splash_close, block, NULL);
|
||||
|
||||
#ifdef NAN_BUILDINFO
|
||||
uiDefBut(block, LABEL, 0, version_str, 500-ver_width, 282-24, ver_width, 20, NULL, 0, 0, 0, 0, NULL);
|
||||
uiDefBut(block, LABEL, 0, revision_str, 500-rev_width, 282-36, rev_width, 20, NULL, 0, 0, 0, 0, NULL);
|
||||
#endif NAN_BUILDINFO
|
||||
|
||||
|
||||
uiBlockSetEmboss(block, UI_EMBOSSP);
|
||||
|
||||
|
Reference in New Issue
Block a user