(ozone_display) Don't set variable to itself

This commit is contained in:
twinaphex 2021-03-08 15:47:03 +01:00
parent 0b06eea846
commit 047b24cfbf

View File

@ -611,8 +611,8 @@ void ozone_draw_messagebox(
int width = font_driver_get_message_width(
ozone->fonts.footer.font, msg, (unsigned)strlen(msg), 1);
longest_width = (width > longest_width) ?
width : longest_width;
if (width > longest_width)
longest_width = width;
}
}