Change Details
src/gmenu2x.cpp |
919 | 919 | re.x = 0; re.y = 0; re.h = skinConfInt["topBarHeight"]; re.w = resX; |
920 | 920 | if (ts.pressed() && ts.inRect(re)) { |
921 | 921 | re.w = skinConfInt["linkWidth"]; |
| 922 | sectionsCoordX = halfX - (constrain((uint)menu->sections.size(), 0 , linkColumns) * skinConfInt["linkWidth"]) / 2; |
922 | 923 | for (i=menu->firstDispSection(); !ts.handled() && i<menu->sections.size() && i<menu->firstDispSection()+linkColumns; i++) { |
923 | | sectionsCoordX = halfX - (constrain((uint)(linkColumns-menu->sections.size()), 0 , linkColumns) * skinConfInt["linkWidth"]) / 2; |
924 | 924 | re.x = (i-menu->firstDispSection())*re.w+sectionsCoordX; |
925 | 925 | |
926 | 926 | if (ts.inRect(re)) { |
Download the corresponding diff file