pitft-fbcp: fix rotation settings for Cupcade
This commit is contained in:
parent
354f5b1111
commit
c5701039e5
1 changed files with 3 additions and 3 deletions
|
|
@ -51,8 +51,8 @@ echo "Select project:"
|
||||||
selectN "PiGRRL 2" \
|
selectN "PiGRRL 2" \
|
||||||
"Pocket PiGRRL" \
|
"Pocket PiGRRL" \
|
||||||
"PiGRRL Zero" \
|
"PiGRRL Zero" \
|
||||||
"Cupcade (horizontal)" \
|
"Cupcade (horizontal screen)" \
|
||||||
"Cupcade (vertical)" \
|
"Cupcade (vertical screen)" \
|
||||||
"Configure options manually"
|
"Configure options manually"
|
||||||
PROJ_SELECT=$?
|
PROJ_SELECT=$?
|
||||||
|
|
||||||
|
|
@ -72,7 +72,7 @@ if [ $PROJ_SELECT -lt 6 ]; then
|
||||||
# 3 elements per project; first is index (1+) into
|
# 3 elements per project; first is index (1+) into
|
||||||
# PITFT_VALUES, second and third are index into
|
# PITFT_VALUES, second and third are index into
|
||||||
# FBROTATE_VALUES and TFTROTATE_VALUES:
|
# FBROTATE_VALUES and TFTROTATE_VALUES:
|
||||||
PROJ_VALUES=(2 1 4 1 1 4 1 1 4 2 0 2 2 1 2)
|
PROJ_VALUES=(2 1 4 1 1 4 1 1 4 2 1 2 2 2 2)
|
||||||
# FBROTATE index is almost always 1, except for HDMI portrait mode
|
# FBROTATE index is almost always 1, except for HDMI portrait mode
|
||||||
|
|
||||||
PITFT_SELECT=${PROJ_VALUES[($PROJ_SELECT-1)*3]}
|
PITFT_SELECT=${PROJ_VALUES[($PROJ_SELECT-1)*3]}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue