GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup
Dependents: F746_SD_GraphicEqualizer_ren0620
Fork of F746_GUI by
Diff: Button.cpp
- Revision:
- 4:cbf7ed9092a3
- Parent:
- 0:a2686ef737c2
- Child:
- 14:95544440b46c
--- a/Button.cpp Thu Apr 07 00:08:19 2016 +0000
+++ b/Button.cpp Fri Apr 08 09:32:49 2016 +0000
@@ -2,7 +2,7 @@
// Button class handling multi-touch
// Multi-touch: Enabled (default)
//
-// 2016/03/29, Copyright (c) 2016 MIKAMI, Naoki
+// 2016/04/08, Copyright (c) 2016 MIKAMI, Naoki
//-----------------------------------------------------------
#include "Button.hpp"
@@ -12,6 +12,7 @@
// Draw button
void Button::Draw(uint32_t color, uint32_t textColor)
{
+ if (color == BACK_COLOR_) active_ = true;
if (!active_) return;
lcd_.SetTextColor(color);
lcd_.FillRect(X_, Y_, W_, H_);
