Selaa lähdekoodia

🧑‍💻 Improve STATUS_BED_X

Scott Lahteine 2 vuotta sitten
vanhempi
commit
0b32c3900f

+ 1
- 0
Marlin/src/lcd/dogm/dogm_Statusscreen.h Näytä tiedosto

@@ -37,6 +37,7 @@
37 37
 
38 38
   #undef STATUS_HEATERS_X
39 39
   #undef STATUS_BED_X
40
+
40 41
   /**
41 42
    * Custom _Statusscreen.h files can define:
42 43
    * - A custom logo image

+ 7
- 1
Marlin/src/lcd/dogm/status/combined.h Näytä tiedosto

@@ -37,6 +37,7 @@
37 37
   #if HOTENDS == 0
38 38
 
39 39
     #define STATUS_HEATERS_WIDTH 96
40
+    #define STATUS_BED_X         74
40 41
 
41 42
     const unsigned char status_heaters_bmp[] PROGMEM = {
42 43
       B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
@@ -56,6 +57,7 @@
56 57
   #elif HOTENDS == 1
57 58
 
58 59
     #define STATUS_HEATERS_WIDTH 96
60
+    #define STATUS_BED_X         74
59 61
 
60 62
     const unsigned char status_heaters_bmp[] PROGMEM = {
61 63
       B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
@@ -75,6 +77,7 @@
75 77
   #elif HOTENDS == 2
76 78
 
77 79
     #define STATUS_HEATERS_WIDTH 96
80
+    #define STATUS_BED_X         74
78 81
 
79 82
     const unsigned char status_heaters_bmp[] PROGMEM = {
80 83
       B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
@@ -104,6 +107,7 @@
104 107
   #elif HOTENDS == 3
105 108
 
106 109
     #define STATUS_HEATERS_WIDTH 96
110
+    #define STATUS_BED_X         74
107 111
 
108 112
     const unsigned char status_heaters_bmp[] PROGMEM = {
109 113
       B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
@@ -133,6 +137,7 @@
133 137
   #else // HOTENDS > 3
134 138
 
135 139
     #define STATUS_HEATERS_WIDTH 120
140
+    #define STATUS_BED_X          98
136 141
 
137 142
     const unsigned char status_heaters_bmp[] PROGMEM = {
138 143
       B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
@@ -161,7 +166,8 @@
161 166
 
162 167
   #endif // HOTENDS
163 168
 
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)
165 171
 
166 172
 #else // !HAS_HEATED_BED || HOTENDS > 3
167 173
 

Loading…
Peruuta
Tallenna