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/ImageButton.cpp
- Revision:
- 6:7917b0894655
- Parent:
- 4:a73760d09423
- Child:
- 9:ce69a7adfe9c
--- a/Application/ImageButton.cpp Sun Dec 21 13:53:07 2014 +0100 +++ b/Application/ImageButton.cpp Thu Jan 08 11:14:56 2015 +0100 @@ -87,8 +87,11 @@ } -void ImageButton::draw() +void ImageButton::draw(COLOR_T* fb) { + if (fb != NULL) { + _win.fb = fb; + } if (_pressed) { if (_imgDown.pixels != NULL) { swim_put_image(&_win, _imgDown.pixels, _imgDown.width, _imgDown.height);