/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-02-28 16:50:26 UTC
  • Revision ID: edam@waxworlds.org-20120228165026-pwnwo300xx2e2kg6
removed ulibc, fixed button, added text rendering

Show diffs side-by-side

added added

removed removed

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
}