From efcf1f7301adbcc06b05eb92fc01a32faa993cfa Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 25 Dec 2014 00:35:21 +0200 Subject: frontend: add 2x scaling option --- frontend/plugin_lib.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'frontend/plugin_lib.c') diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 72b3395..64f96a0 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -180,6 +180,14 @@ static void update_layer_size(int w, int h) g_layer_w = w; g_layer_h = h; break; + case SCALE_2_2: + g_layer_w = w; g_layer_h = h; + if (w * 2 <= g_menuscreen_w) + g_layer_w = w * 2; + if (h * 2 <= g_menuscreen_h) + g_layer_h = h * 2; + break; + case SCALE_4_3v2: if (h > g_menuscreen_h || (240 < h && h <= 360)) goto fractional_4_3; -- cgit v1.2.3