changeset 184:43b41376aad0

Implement UI scale in launcher parameters (no UI widget yet).
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Aug 2018 14:16:46 +0300
parents 1cb7ecd73554
children b4e8b8c1c3e3
files mpui.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpui.js	Thu Aug 23 14:11:32 2018 +0300
+++ b/mpui.js	Thu Aug 23 14:16:46 2018 +0300
@@ -229,11 +229,13 @@
       }
     }
 
-    if (sargs.length > 2)
+    if (sargs.length >= 3)
     {
       mpForcedWidth = parseInt(sargs[1]);
       mpForcedHeight = parseInt(sargs[2]);
     }
+    if (sargs.length >= 4)
+      mpUIScale = parseInt(sargs[3]);
   }
   else
     mpURL = slink;