Changeset 1272
- Timestamp:
- 10/05/07 16:51:47 (13 months ago)
- Files:
-
- 1 modified
-
trunk/src/buzelib/MachineView.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/buzelib/MachineView.cpp
r1271 r1272 1170 1170 return effectPanBrush; 1171 1171 } 1172 1173 assert(false); // should never get here1174 1172 return generatorPanBrush; 1175 1173 } … … 1178 1176 if ((machine->getFlags() & PLUGIN_FLAGS_MASK) == ROOT_PLUGIN_FLAGS) { 1179 1177 return masterBgBrush; 1180 } else1181 if ((machine->getFlags() & PLUGIN_FLAGS_MASK) == GENERATOR_PLUGIN_FLAGS) {1182 if (machine->isMuted() || machine->isBypassed())1183 return generatorMuteBrush; else1184 return generatorBgBrush;1185 1178 } else 1186 1179 if ((machine->getFlags() & PLUGIN_FLAGS_MASK) == EFFECT_PLUGIN_FLAGS) { … … 1188 1181 return effectMuteBrush; 1189 1182 return effectBgBrush; 1190 } 1191 1192 assert(false); // should never get here 1193 return masterBgBrush; 1183 } else { 1184 if (machine->isMuted() || machine->isBypassed()) 1185 return generatorMuteBrush; else 1186 return generatorBgBrush; 1187 } 1194 1188 } 1195 1189 … … 1205 1199 return masterLedOnBrush; 1206 1200 } else 1207 assert(false);1201 return generatorLedOnBrush; 1208 1202 } else { 1209 1203 if ((machine->getFlags() & PLUGIN_FLAGS_MASK) == EFFECT_PLUGIN_FLAGS) { … … 1216 1210 return masterLedOffBrush; 1217 1211 } else 1218 assert(false); 1219 } 1220 1221 assert(false); // should never get here 1222 return masterLedOffBrush; 1212 return generatorLedOffBrush; 1213 } 1223 1214 } 1224 1215
