Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37883102
en ru br
Репозитории 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
www.altlinux.org/Changes

Группа :: Игры/Спорт
Пакет: 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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin