change constant names
This commit is contained in:
@@ -63,7 +63,7 @@ bool cButton::isScrollable() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
const int tiny_text_offset = 18;
|
||||
const int TINY_TEXT_OFFSET = 18;
|
||||
|
||||
void cButton::draw(){
|
||||
rectangle from_rect, to_rect;
|
||||
@@ -85,7 +85,7 @@ void cButton::draw(){
|
||||
eTextMode textMode = eTextMode::CENTRE;
|
||||
if(type == BTN_TINY) {
|
||||
textMode = wrapLabel ? eTextMode::WRAP : eTextMode::LEFT_TOP;
|
||||
to_rect.left += tiny_text_offset;
|
||||
to_rect.left += TINY_TEXT_OFFSET;
|
||||
style.colour = textClr;
|
||||
} else if(type == BTN_PUSH) {
|
||||
to_rect.top += 42;
|
||||
|
@@ -86,7 +86,7 @@ bool cLed::manageFormat(eFormat prop, bool set, boost::any* val) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const int text_offset = 18; // Possibly could be 20
|
||||
const int LED_TEXT_OFFSET = 18; // Possibly could be 20
|
||||
|
||||
void cLed::draw(){
|
||||
rectangle from_rect, to_rect;
|
||||
|
Reference in New Issue
Block a user