Skip to content

Commit 0b32c39

Browse files
committed
πŸ§‘β€πŸ’» Improve STATUS_BED_X
1 parent 6b47db3 commit 0b32c39

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

β€ŽMarlin/src/lcd/dogm/dogm_Statusscreen.h

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
#undef STATUS_HEATERS_X
3939
#undef STATUS_BED_X
40+
4041
/**
4142
* Custom _Statusscreen.h files can define:
4243
* - A custom logo image

β€ŽMarlin/src/lcd/dogm/status/combined.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#if HOTENDS == 0
3838

3939
#define STATUS_HEATERS_WIDTH 96
40+
#define STATUS_BED_X 74
4041

4142
const unsigned char status_heaters_bmp[] PROGMEM = {
4243
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
@@ -56,6 +57,7 @@
5657
#elif HOTENDS == 1
5758

5859
#define STATUS_HEATERS_WIDTH 96
60+
#define STATUS_BED_X 74
5961

6062
const unsigned char status_heaters_bmp[] PROGMEM = {
6163
B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
@@ -75,6 +77,7 @@
7577
#elif HOTENDS == 2
7678

7779
#define STATUS_HEATERS_WIDTH 96
80+
#define STATUS_BED_X 74
7881

7982
const unsigned char status_heaters_bmp[] PROGMEM = {
8083
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
@@ -104,6 +107,7 @@
104107
#elif HOTENDS == 3
105108

106109
#define STATUS_HEATERS_WIDTH 96
110+
#define STATUS_BED_X 74
107111

108112
const unsigned char status_heaters_bmp[] PROGMEM = {
109113
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
@@ -133,6 +137,7 @@
133137
#else // HOTENDS > 3
134138

135139
#define STATUS_HEATERS_WIDTH 120
140+
#define STATUS_BED_X 98
136141

137142
const unsigned char status_heaters_bmp[] PROGMEM = {
138143
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
@@ -161,7 +166,8 @@
161166

162167
#endif // HOTENDS
163168

164-
#define STATUS_BED_TEXT_X (STATUS_HEATERS_WIDTH - 10)
169+
#define STATUS_BED_WIDTH 20
170+
#define STATUS_BED_TEXT_X (STATUS_BED_X + STATUS_BED_WIDTH / 2)
165171

166172
#else // !HAS_HEATED_BED || HOTENDS > 3
167173

0 commit comments

Comments
Β (0)