summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-22 20:02:33 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-22 20:02:41 +0200
commit7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081 (patch)
treebebd2daff9ffb1cd06ee42db027192e08afebe9e
parent7721059d0f2d5bbc68442389c7293674dfd761a2 (diff)
downloadvendor_replicant-scripts-7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081.tar.gz
vendor_replicant-scripts-7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081.tar.bz2
vendor_replicant-scripts-7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081.zip
graphics: fix user interface
The graphics user interface is the following, according to the help: Usage: graphics.sh [faster|compatible] Examples: graphics.sh faster |-> Uses Android's libagl which is faster but some applications like icecat won't work graphics.sh compatible |-> Uses llvmpipe which is slower but more compatible However the code is still expecting the "libagl" or "llvmpipe" arguments: graphics() { new_renderer="$1" # libagl || llvmpipe [...] if [ "${old_renderer}" == "${new_renderer}" ] ; then [...] } This fix the code to by passing the libagl and llvmpipe arguments to the graphics function as it expects, while keeping the same user interface. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--display/renderer/device-files/graphics.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/display/renderer/device-files/graphics.sh b/display/renderer/device-files/graphics.sh
index daf4ee1..1dd4462 100644
--- a/display/renderer/device-files/graphics.sh
+++ b/display/renderer/device-files/graphics.sh
@@ -130,8 +130,10 @@ if [ $# -ne 1 ] ; then
usage
fi
-if [ "$1" = "faster" -o "$1" = "compatible" ] ;then
- graphics "$1"
+if [ "$1" = "faster" ] ; then
+ graphics libagl
+elif [ "$1" = "compatible" ] ;then
+ graphics llvmpipe
else
usage
fi