Revert "Try reducing the amount of structures used (will revert if no performance improvements are observed)"

Performance does not improve, and it leads to very annoying/confusing
data management...
This commit is contained in:
Lorenzooone
2024-06-08 22:20:20 +02:00
parent 9fb31f8495
commit 1f478b5a3b
4 changed files with 87 additions and 63 deletions

View File

@@ -109,10 +109,10 @@ void RotationMenu::prepare(float menu_scaling_factor, int view_size_x, int view_
int option_index = this->options_indexes[real_index];
switch(pollable_options[option_index]->out_action) {
case ROTATION_MENU_TOP_ROTATION_DEC:
this->labels[index]->setText(this->setTextOptionInt(real_index, (info->top_rotation + 90) % 360));
this->labels[index]->setText(this->setTextOptionInt(real_index, info->top_rotation));
break;
case ROTATION_MENU_BOTTOM_ROTATION_DEC:
this->labels[index]->setText(this->setTextOptionInt(real_index, (info->bot_rotation + 90) % 360));
this->labels[index]->setText(this->setTextOptionInt(real_index, info->bot_rotation));
break;
default:
break;