From 8621720d19cae661eec591acafd7ba893606649c Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Wed, 16 Mar 2016 22:56:55 -0700 Subject: [PATCH 1/2] bump base and luajitlauncher --- base | 2 +- platform/android/luajit-launcher | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base b/base index 8cdf52685..b4b578c0b 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 8cdf526854572969436f7820eab73d99a57e9bed +Subproject commit b4b578c0b9f2108231af33acb6534c526daab9ed diff --git a/platform/android/luajit-launcher b/platform/android/luajit-launcher index f0284840b..f355af989 160000 --- a/platform/android/luajit-launcher +++ b/platform/android/luajit-launcher @@ -1 +1 @@ -Subproject commit f0284840b3a8d618381b1e4cb6ca330369a02eb5 +Subproject commit f355af98916e9d534d4c73d7772e7924f1ad8b31 From d208a7dbfa54395e539295c6da0fc4db61db2183 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Wed, 16 Mar 2016 23:05:09 -0700 Subject: [PATCH 2/2] kodev: add -w, -h options to run command --- kodev | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kodev b/kodev index a8d2fab10..719776c5c 100755 --- a/kodev +++ b/kodev @@ -213,9 +213,13 @@ usage: run OPTIONS: + -h, --screen-height set height of the emulator screen (default: 720) + -w, --screen-width set width of the emulator screen (default: 540) --no-build run reader without rebuilding --disable-touch use this if you want to simulate keyboard only devices " + screen_width=540 + screen_height=720 while [[ $1 == '-'* ]]; do PARAM=`echo $1 | awk -F= '{print $1}'` VALUE=`echo $1 | awk -F= '{print $2}'` @@ -226,6 +230,12 @@ OPTIONS: --no-build) no_build=true ;; + -w | --screen-width) + screen_width=${VALUE} + ;; + -h | --screen-height) + screen_height=${VALUE} + ;; -h | --help) echo "${RUN_HELP_MSG}" exit 0 @@ -261,7 +271,8 @@ OPTIONS: [[ $args != /* ]] && args="${CURDIR}/$1" fi - EMULATE_READER_W=540 EMULATE_READER_H=720 ./reader.lua -d $args + EMULATE_READER_W=${screen_width} EMULATE_READER_H=${screen_height} \ + ./reader.lua -d $args popd }