/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/minor_mode.cc

  • Committer: edam
  • Date: 2012-03-03 10:06:31 UTC
  • Revision ID: edam@waxworlds.org-20120303100631-ae3idks1703vdm05
widenned clock hands, tweaked scales, got top & bottom text modes working

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
}
31
31
 
32
32
 
 
33
void MinorMode::press()
 
34
{
 
35
        if( ++_flavour >= _num_flavours )
 
36
                _flavour = 0;
 
37
}
 
38
 
 
39
 
33
40
void MinorMode::activate()
34
41
{
35
42
        _flavour = 0;
36
43
}
37
44
 
38
45
 
39
 
void MinorMode::next_flavour()
40
 
{
41
 
        if( ++_flavour >= _num_flavours )
42
 
                _flavour = 0;
43
 
}
44
 
 
45
 
 
46
46
int MinorMode::get_flavour()
47
47
{
48
48
        return _flavour;
49
49
}
 
50
 
 
51
 
 
52
Drawer &MinorMode::get_drawer()
 
53
{
 
54
        return *this;
 
55
}