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

This commit is contained in:
Lorenzooone
2024-06-08 21:30:38 +02:00
parent b24a52d5d4
commit 9fb31f8495
4 changed files with 63 additions and 87 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));
this->labels[index]->setText(this->setTextOptionInt(real_index, (info->top_rotation + 90) % 360));
break;
case ROTATION_MENU_BOTTOM_ROTATION_DEC:
this->labels[index]->setText(this->setTextOptionInt(real_index, info->bot_rotation));
this->labels[index]->setText(this->setTextOptionInt(real_index, (info->bot_rotation + 90) % 360));
break;
default:
break;