gterm: Change resolutions at which autoscaling is triggered

This commit is contained in:
mintsuki 2023-07-29 04:45:02 -05:00
parent e1d25f8c66
commit edaadc2201
1 changed files with 2 additions and 2 deletions

View File

@ -786,11 +786,11 @@ no_load_font:;
generate_canvas(fb);
if (font_scale_is_default) {
if (fb->framebuffer_width > 1366 && fb->framebuffer_height > 768) {
if (fb->framebuffer_width >= (1920 + 1920 / 3) && fb->framebuffer_height >= (1080 + 1080 / 3)) {
font_scale_x = 2;
font_scale_y = 2;
}
if (fb->framebuffer_width > 2560 && fb->framebuffer_height > 1440) {
if (fb->framebuffer_width >= (3840 + 3840 / 3) && fb->framebuffer_height >= (2160 + 2160 / 3)) {
font_scale_x = 4;
font_scale_y = 4;
}