lib: simplefb: drop redundant variable in scale calculation

This commit is contained in:
Ivaylo Ivanov committed 2026-05-28 00:01:44 +03:00
1 parent b2a3304179
commit 4b386dc15c
1 file changed
+1 -2
+1 -2
View File
@@ -75,10 +75,9 @@ int get_font_scale_factor()
x = y;
y = (x + n / x) / 2;
}
int diag = x;
/* determine scale factor from pseudo-diagonal */
int scale = diag / 750;
int scale = x / 750;
/* clamp the result */
if (scale < 1)