Date:2010-05-02 20:17:27 (13 years 10 months ago)
Author:Lars C.
Commit:475fdb74b9f635899f4ef9492e3e63e205102860
Message:Fix topbar icon rects

Files: src/gmenu2x.cpp (1 diff)

Change Details

src/gmenu2x.cpp
919919            re.x = 0; re.y = 0; re.h = skinConfInt["topBarHeight"]; re.w = resX;
920920            if (ts.pressed() && ts.inRect(re)) {
921921                re.w = skinConfInt["linkWidth"];
922                sectionsCoordX = halfX - (constrain((uint)menu->sections.size(), 0 , linkColumns) * skinConfInt["linkWidth"]) / 2;
922923                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;
924924                    re.x = (i-menu->firstDispSection())*re.w+sectionsCoordX;
925925
926926                    if (ts.inRect(re)) {

Archive Download the corresponding diff file



interactive