imx233: fix button debug screen on landscape mode screen

Some players like the ZEN X-Fi have a wide but not tall screen, it is
thus better to display everything on one line for each button

Change-Id: Ided3d4ff689cc5d3bcc2bdba4c7e046cf7dc0954
This commit is contained in:
Amaury Pouly 2016-05-29 16:05:56 +01:00
parent ae7dd5388d
commit 7aacf4da2d

View file

@ -1174,9 +1174,14 @@ bool dbg_hw_info_button(void)
strcat(flags, " inv"); strcat(flags, " inv");
if(MAP[i].flags & IMX233_BUTTON_PULLUP) if(MAP[i].flags & IMX233_BUTTON_PULLUP)
strcat(flags, " pull"); strcat(flags, " pull");
#if LCD_WHITE <= LCD_HEIGHT
lcd_putsf(0, line++, "%s %d %d/%d %d %s", MAP[i].name, val, lcd_putsf(0, line++, "%s %d %d/%d %d %s", MAP[i].name, val,
MAP[i].rounds, MAP[i].threshold, raw, type); MAP[i].rounds, MAP[i].threshold, raw, type);
lcd_putsf(0, line++, " %s%s", path, flags); lcd_putsf(0, line++, " %s%s", path, flags);
#else
lcd_putsf(0, line++, "%s %d %d/%d %d %s %s%s", MAP[i].name, val,
MAP[i].rounds, MAP[i].threshold, raw, type, path, flags);
#endif
} }
#undef MAP #undef MAP