summaryrefslogtreecommitdiffstats
path: root/display/renderer/device-files/graphics.sh
Commit message (Collapse)AuthorAgeFilesLines
* graphics: fix user interfaceDenis 'GNUtoo' Carikli2020-07-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* display: renderer: rework script user interfaceDenis 'GNUtoo' Carikli2020-07-031-0/+137
The current interface has various issues that are fixed by this new interface. Here's the design decisions that went into the new interface: - Many people don't know what llvmpipe is, and androidsw.sh is not easy to remember. - This new interface still work fine on devices with a small screen like the Galaxy SII and with the default keyboard configuration. - It also checks for root permissions and has a help. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>