ALT Linux repositórios
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
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