Fix for problems in previous commit when buildinfo wasn't enabled.

This commit is contained in:
Matt Ebb
2010-01-08 06:05:42 +00:00
parent 13002c1645
commit ceab17ee17

View File

@@ -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);