change constant names

This commit is contained in:
2024-11-25 22:43:03 -06:00
committed by Celtic Minstrel
parent c2dc4f2252
commit cfdd6304fd
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;