Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37889812
en ru br
ALT Linux repositórios
S:0.9.0-alt1
5.0: 0.8.0-alt4
4.1: 0.8.0-alt4
4.0: 0.8.0-alt4
3.0: 0.8.0-alt1.1

Group :: Jogos/Esportes
RPM: gav

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: gav-0.9.0-fix-menu-alignment.patch
Download


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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009