Skip to content

Commit

Permalink
Fix challenge banner label z-order
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Feb 29, 2024
1 parent 0bc7a84 commit 9f2639e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/challenge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 9f2639e

Please sign in to comment.