mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
lib: simplefb: drop redundant variable in scale calculation
This commit is contained in:
1 parent
b2a3304179
commit
4b386dc15c
1 file changed
+1
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user