aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin_lib.c
diff options
context:
space:
mode:
authornotaz2014-12-25 00:35:21 +0200
committernotaz2014-12-25 00:35:21 +0200
commitefcf1f7301adbcc06b05eb92fc01a32faa993cfa (patch)
treef1afb1c1b3b053b275748f66d081731060ed9900 /frontend/plugin_lib.c
parent271e11499d7e60e1bfb0ffeda8f8266906130b87 (diff)
downloadpcsx_rearmed-efcf1f7301adbcc06b05eb92fc01a32faa993cfa.tar.gz
pcsx_rearmed-efcf1f7301adbcc06b05eb92fc01a32faa993cfa.tar.bz2
pcsx_rearmed-efcf1f7301adbcc06b05eb92fc01a32faa993cfa.zip
frontend: add 2x scaling option
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r--frontend/plugin_lib.c8
1 files changed, 8 insertions, 0 deletions
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;