Add more support for small fonts in screen resolution determination (#10480)
This commit is contained in:
@@ -27,6 +27,12 @@ ScreenResolution determineScreenResolution(int16_t screenheight, int16_t screenw
|
|||||||
return ScreenResolution::UltraLow;
|
return ScreenResolution::UltraLow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DISPLAY_FORCE_SMALL_FONTS
|
||||||
|
if (screenwidth <= 160 && screenheight <= 80) {
|
||||||
|
return ScreenResolution::Low;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Standard OLED screens
|
// Standard OLED screens
|
||||||
if (screenwidth > 128 && screenheight <= 64) {
|
if (screenwidth > 128 && screenheight <= 64) {
|
||||||
return ScreenResolution::Low;
|
return ScreenResolution::Low;
|
||||||
|
|||||||
Reference in New Issue
Block a user