Skip to content

Commit

Permalink
rotation: fix switch statement for rotation
Browse files Browse the repository at this point in the history
Change-Id: I29e594791b3a149f08df95fe37309a1ed82784ad
  • Loading branch information
bigbiff authored and epicX67 committed Nov 14, 2021
1 parent c1304fd commit 3af297b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 218 deletions.
218 changes: 0 additions & 218 deletions minuitwrp/Android.mk.old

This file was deleted.

3 changes: 3 additions & 0 deletions minuitwrp/libminuitwrp_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ func globalFlags(ctx android.BaseContext) []string {
var tw_rotation = getMakeVars(ctx, "TW_ROTATION")
switch tw_rotation {
case "0":
fallthrough
case "90":
fallthrough
case "180":
fallthrough
case "270":
cflags = append(cflags, "-DTW_ROTATION="+tw_rotation)
default:
Expand Down

0 comments on commit 3af297b

Please sign in to comment.