diff --git a/src/challenge.cpp b/src/challenge.cpp index bd3c2894845..e54b5ef17af 100644 --- a/src/challenge.cpp +++ b/src/challenge.cpp @@ -239,6 +239,19 @@ bool addChallenges() sFormInit.UserData = 0; widgAddForm(psRequestScreen, &sFormInit); + // Add Banner Label + W_LABINIT sLabInit; + sLabInit.formID = CHALLENGE_BANNER; + sLabInit.FontID = font_large; + sLabInit.id = CHALLENGE_LABEL; + sLabInit.style = WLAB_ALIGNCENTRE; + sLabInit.x = 0; + sLabInit.y = 0; + sLabInit.width = CHALLENGE_W - (2 * CHALLENGE_HGAP); //CHALLENGE_W; + sLabInit.height = CHALLENGE_BANNER_DEPTH; //This looks right -Q + sLabInit.pText = WzString::fromUtf8("Challenge"); + widgAddLabel(psRequestScreen, &sLabInit); + // add cancel. W_BUTINIT sButInit; sButInit.formID = CHALLENGE_BANNER; @@ -253,19 +266,6 @@ bool addChallenges() sButInit.pDisplay = intDisplayImageHilight; widgAddButton(psRequestScreen, &sButInit); - // Add Banner Label - W_LABINIT sLabInit; - sLabInit.formID = CHALLENGE_BANNER; - sLabInit.FontID = font_large; - sLabInit.id = CHALLENGE_LABEL; - sLabInit.style = WLAB_ALIGNCENTRE; - sLabInit.x = 0; - sLabInit.y = 0; - sLabInit.width = CHALLENGE_W - (2 * CHALLENGE_HGAP); //CHALLENGE_W; - sLabInit.height = CHALLENGE_BANNER_DEPTH; //This looks right -Q - sLabInit.pText = WzString::fromUtf8("Challenge"); - widgAddLabel(psRequestScreen, &sLabInit); - // add slots sButInit = W_BUTINIT(); sButInit.formID = CHALLENGE_FORM;