Репозитории ALT
S: | 0.9.0-alt1 |
5.1: | 0.8.0-alt4 |
4.1: | 0.8.0-alt4 |
4.0: | 0.8.0-alt4 |
3.0: | 0.8.0-alt1.1 |
Группа :: Игры/Спорт
Пакет: gav
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: gav-0.9.0-fix-menu-alignment.patch
Скачать
Скачать
diff --git a/gav/menu/Menu.cpp b/gav/menu/Menu.cpp
index fbea445..df0e07f 100644
--- a/gav/menu/Menu.cpp
+++ b/gav/menu/Menu.cpp
@@ -67,7 +67,7 @@ int Menu::execute(InputState *is, std::stack<Menu *> &s)
for ( unsigned int it = 0; it < items.size(); it++ ) {
label = items[it]->getLabel().c_str();
rect.x = (configuration.env.w / 2) -
- strlen(label)*(cga->charWidth())/2; // UGLY
+ items[it]->getLabel().length()*(cga->charWidth())/2; // UGLY
if (it == (unsigned int) currentItem)
font = cgaInv;
else