~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to gtk2_ardour/gain_meter.cc

  • Committer: Package Import Robot
  • Author(s): Adrian Knoth
  • Date: 2014-02-25 14:13:18 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140225141318-y760kgxso78rduuf
Tags: 3.5.357~dfsg-1
* Imported Upstream version 3.5.357~dfsg
* Critical bugfix release. All users are recommended to upgrade.
* Details: https://community.ardour.org/node/8015

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
GainMeterBase::setup_meters (int len)
275
275
{
276
276
        int meter_width = 5;
 
277
        uint32_t meter_channels = 0;
 
278
        if (_meter) {
 
279
                meter_channels = _meter->input_streams().n_total();
 
280
        } else if (_route) {
 
281
                meter_channels = _route->shared_peak_meter()->input_streams().n_total();
 
282
        }
277
283
 
278
284
        switch (_width) {
279
285
                case Wide:
280
286
                        //meter_ticks1_area.show();
281
287
                        //meter_ticks2_area.show();
282
288
                        meter_metric_area.show();
283
 
                        if (_route && _route->shared_peak_meter()->input_streams().n_total() == 1) {
 
289
                        if (meter_channels == 1) {
284
290
                                meter_width = 10;
285
291
                        }
286
292
                        break;
287
293
                case Narrow:
288
 
                        if (_route && _route->shared_peak_meter()->input_streams().n_total() > 1) {
 
294
                        if (meter_channels > 1) {
289
295
                                meter_width = 4;
290
296
                        }
291
297
                        //meter_ticks1_area.hide();