From 2e3d121ac434a990e69c3a068991681f2e4563ce Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Thu, 18 Apr 2019 12:18:49 -0600 Subject: [PATCH] Squelch compiler warning (#13739) --- Marlin/src/lcd/dogm/ultralcd_DOGM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/dogm/ultralcd_DOGM.cpp b/Marlin/src/lcd/dogm/ultralcd_DOGM.cpp index 4ef6fc6248..1ab6b18cf2 100644 --- a/Marlin/src/lcd/dogm/ultralcd_DOGM.cpp +++ b/Marlin/src/lcd/dogm/ultralcd_DOGM.cpp @@ -175,14 +175,14 @@ void MarlinUI::set_font(const MarlinFont font_nr) { // Can the text fit to the right of the bitmap? if (text_max_width < rspace) { - constexpr uint8_t inter = (width - text_max_width - (START_BMPWIDTH)) / 3; // Evenly distribute horizontal space + constexpr int8_t inter = (width - text_max_width - (START_BMPWIDTH)) / 3; // Evenly distribute horizontal space offx = inter; // First the boot logo... offy = (height - (START_BMPHEIGHT)) / 2; // ...V-aligned in the full height txt_offx_1 = txt_offx_2 = inter + (START_BMPWIDTH) + inter; // Text right of the bitmap txt_base = (height + MENU_FONT_ASCENT + text_total_height - (MENU_FONT_HEIGHT)) / 2; // Text vertical center } else { - constexpr uint8_t inter = (height - text_total_height - (START_BMPHEIGHT)) / 3; // Evenly distribute vertical space + constexpr int8_t inter = (height - text_total_height - (START_BMPHEIGHT)) / 3; // Evenly distribute vertical space offy = inter; // V-align boot logo proportionally offx = rspace / 2; // Center the boot logo in the whole space txt_offx_1 = (width - text_width_1) / 2; // Text 1 centered