Subversion Repositories tpanel

Rev

Rev 439 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 439 Rev 442
Line 1145... Line 1145...
1145
        inst = instance;
1145
        inst = instance;
1146
    }
1146
    }
1147
    else if (inst < 0 || static_cast<size_t>(inst) >= sr.size())
1147
    else if (inst < 0 || static_cast<size_t>(inst) >= sr.size())
1148
        inst = mActInstance = 0;
1148
        inst = mActInstance = 0;
1149
 
1149
 
1150
    bool isSystem = isSystemButton();
-
 
1151
    TButtonStates *buttonStates = getButtonState();
-
 
1152
 
-
 
1153
    int lastLevel = 0;
1150
    int lastLevel = 0;
1154
    int lastJoyX = 0;
1151
    int lastJoyX = 0;
1155
    int lastJoyY = 0;
1152
    int lastJoyY = 0;
-
 
1153
    TButtonStates *buttonStates = nullptr;
-
 
1154
    bool isSystem = isSystemButton();
1156
 
1155
 
1157
    if (buttonStates)
1156
    if (type == BARGRAPH || type == JOYSTICK || type == MULTISTATE_BARGRAPH)
1158
    {
1157
    {
-
 
1158
        TButtonStates *buttonStates = getButtonState();
-
 
1159
 
-
 
1160
        if (buttonStates)
-
 
1161
        {
1159
        lastLevel = buttonStates->getLastLevel();
1162
            lastLevel = buttonStates->getLastLevel();
1160
        lastJoyX = buttonStates->getLastJoyX();
1163
            lastJoyX = buttonStates->getLastJoyX();
1161
        lastJoyY = buttonStates->getLastJoyY();
1164
            lastJoyY = buttonStates->getLastJoyY();
1162
        MSG_DEBUG("lastLevel: " << lastLevel << ", lastJoyX: " << lastJoyX << ", lastJoyY: " << lastJoyY);
1165
            MSG_DEBUG("lastLevel: " << lastLevel << ", lastJoyX: " << lastJoyX << ", lastJoyY: " << lastJoyY);
1163
    }
1166
        }
1164
    else
1167
        else
1165
    {
1168
        {
1166
        MSG_ERROR("Button states not found!");
1169
            MSG_ERROR("Button states not found!");
1167
        return false;
1170
            return false;
-
 
1171
        }
1168
    }
1172
    }
1169
 
1173
 
1170
    if (type == MULTISTATE_GENERAL && ar == 1)
1174
    if (type == MULTISTATE_GENERAL && ar == 1)
1171
        return drawButtonMultistateAni();
1175
        return drawButtonMultistateAni();
1172
    else if (type == BARGRAPH && isSystem && lv == 9)   // System volume button
1176
    else if (type == BARGRAPH && isSystem && lv == 9)   // System volume button