Browse Source

Squelch compiler warning (#13739)

Marcio Teixeira 6 years ago
parent
commit
2e3d121ac4
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/lcd/dogm/ultralcd_DOGM.cpp

+ 2
- 2
Marlin/src/lcd/dogm/ultralcd_DOGM.cpp View File

175
 
175
 
176
     // Can the text fit to the right of the bitmap?
176
     // Can the text fit to the right of the bitmap?
177
     if (text_max_width < rspace) {
177
     if (text_max_width < rspace) {
178
-      constexpr uint8_t inter = (width - text_max_width - (START_BMPWIDTH)) / 3; // Evenly distribute horizontal space
178
+      constexpr int8_t inter = (width - text_max_width - (START_BMPWIDTH)) / 3; // Evenly distribute horizontal space
179
       offx = inter;                             // First the boot logo...
179
       offx = inter;                             // First the boot logo...
180
       offy = (height - (START_BMPHEIGHT)) / 2;  // ...V-aligned in the full height
180
       offy = (height - (START_BMPHEIGHT)) / 2;  // ...V-aligned in the full height
181
       txt_offx_1 = txt_offx_2 = inter + (START_BMPWIDTH) + inter; // Text right of the bitmap
181
       txt_offx_1 = txt_offx_2 = inter + (START_BMPWIDTH) + inter; // Text right of the bitmap
182
       txt_base = (height + MENU_FONT_ASCENT + text_total_height - (MENU_FONT_HEIGHT)) / 2; // Text vertical center
182
       txt_base = (height + MENU_FONT_ASCENT + text_total_height - (MENU_FONT_HEIGHT)) / 2; // Text vertical center
183
     }
183
     }
184
     else {
184
     else {
185
-      constexpr uint8_t inter = (height - text_total_height - (START_BMPHEIGHT)) / 3; // Evenly distribute vertical space
185
+      constexpr int8_t inter = (height - text_total_height - (START_BMPHEIGHT)) / 3; // Evenly distribute vertical space
186
       offy = inter;                             // V-align boot logo proportionally
186
       offy = inter;                             // V-align boot logo proportionally
187
       offx = rspace / 2;                        // Center the boot logo in the whole space
187
       offx = rspace / 2;                        // Center the boot logo in the whole space
188
       txt_offx_1 = (width - text_width_1) / 2;  // Text 1 centered
188
       txt_offx_1 = (width - text_width_1) / 2;  // Text 1 centered

Loading…
Cancel
Save