Skip to content

Commit

Permalink
fix: update element positions after resolution change
Browse files Browse the repository at this point in the history
  • Loading branch information
Solant committed May 18, 2024
1 parent 32779d3 commit 61fb273
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions MechoSoma/RUNTIME/arcane_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2001,10 +2001,24 @@ void mchReInitArcaneScreen(void)
mchArcaneScreenElement *last = mch_arcScrD->objList->last();
int figureIndex = 0;
do {
if (curr->type == AE_FIGURE_FACE) {
curr->InitCoords("figure");
curr->R.y += curr->SizeY * figureIndex;
figureIndex++;
switch (curr->type) {
case AE_FIGURE_FACE:
curr->InitCoords("figure");
curr->R.y += curr->SizeY * figureIndex;
figureIndex++;
break;
case AE_ARROW:
curr->InitCoords("arrow");
break;
case AE_WORLD_MAP:
curr->InitCoords("map");
break;
case AE_SPEED_COUNTER:
curr->InitCoords("speed_counter");
break;
case AE_NAME_STATUS_STR:
curr->InitCoords("name_str");
break;
}
curr = curr->next;
} while (curr != last);
Expand Down

0 comments on commit 61fb273

Please sign in to comment.