A basic graphics package for the LPC4088 Display Module.
Dependents: lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more
Fork of DMBasicGUI by
Diff: Application/Button.cpp
- Revision:
- 6:7917b0894655
- Parent:
- 3:3fabfe3339b8
--- a/Application/Button.cpp Sun Dec 21 13:53:07 2014 +0100 +++ b/Application/Button.cpp Thu Jan 08 11:14:56 2015 +0100 @@ -47,8 +47,11 @@ _fgColPressed = fgPressed; } -void Button::draw() +void Button::draw(COLOR_T* fb) { + if (fb != NULL) { + _win.fb = fb; + } if (_pressed) { swim_set_pen_color(&_win, _fgColPressed); swim_set_bkg_color(&_win, _bgColPressed);