Skip to content

Commit

Permalink
Fix layout re-calculation of mission timer
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 13, 2019
1 parent 67b64e6 commit d655de8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mission.cpp
Expand Up @@ -1891,6 +1891,9 @@ bool intAddMissionTimer()
sFormInit.height = iV_GetImageHeight(IntImages, IMAGE_MISSION_CLOCK); //TIMER_HEIGHT;
sFormInit.x = (SWORD)(RADTLX + RADWIDTH - sFormInit.width);
sFormInit.y = (SWORD)TIMER_Y;
sFormInit.calcLayout = LAMBDA_CALCLAYOUT_SIMPLE({
psWidget->move((SWORD)(RADTLX + RADWIDTH - psWidget->width()), TIMER_Y);
});
sFormInit.UserData = PACKDWORD_TRI(0, IMAGE_MISSION_CLOCK, IMAGE_MISSION_CLOCK_UP);
sFormInit.pDisplay = intDisplayMissionClock;

Expand Down

0 comments on commit d655de8

Please sign in to comment.