Same as original
Diff: button.cpp
- Revision:
- 4:543ec60c2814
- Parent:
- 2:682475aae171
- Child:
- 5:2cc388e91bde
--- a/button.cpp Mon Nov 23 09:47:50 2015 +0000 +++ b/button.cpp Sat Dec 05 11:09:29 2015 +0000 @@ -1,7 +1,7 @@ //----------------------------------------------------------- // Button class // -// 2015/11/23, Copyright (c) 2015 MIKAMI, Naoki +// 2015/12/05, Copyright (c) 2015 MIKAMI, Naoki //----------------------------------------------------------- #include "button.hpp" @@ -12,6 +12,7 @@ void Button::Draw(uint32_t color, uint32_t textColor) { lcd_.SetTextColor(color); + currentColor_ = color; lcd_.FillRect(X_, Y_, W_, H_); if (STR_.length() != 0) @@ -56,3 +57,4 @@ return rtn; } } +