Choose hwrotation at runtime

If the prop persist.twrp.rotation is set to 0, 90, 180, or 270,
that will be used. If the prop is not set, the existing rotation
board config flags will be honored.

Note: This flag will only rotate graphics. If a set of devices
needs differing touch rotation, that support will need added
separately.

Change-Id: I6996c07bc0ae7bb8555b3d480b2917a17a365eb3
diff --git a/minuitwrp/minui.h b/minuitwrp/minui.h
index 2c462e7..a6c2a71 100644
--- a/minuitwrp/minui.h
+++ b/minuitwrp/minui.h
@@ -76,16 +76,9 @@
 
 // Transform minuitwrp API coordinates into display coordinates,
 // for panels that are hardware-mounted in a rotated manner.
-#define ROTATION_X_DISP(x, y, surface) \
-    ((TW_ROTATION ==   0) ? (x) : \
-     (TW_ROTATION ==  90) ? ((surface)->width - (y) - 1) : \
-     (TW_ROTATION == 180) ? ((surface)->width - (x) - 1) : \
-     (TW_ROTATION == 270) ? (y) : -1)
-#define ROTATION_Y_DISP(x, y, surface) \
-    ((TW_ROTATION ==   0) ? (y) : \
-     (TW_ROTATION ==  90) ? (x) : \
-     (TW_ROTATION == 180) ? ((surface)->height - (y) - 1) : \
-     (TW_ROTATION == 270) ? ((surface)->height - (x) - 1) : -1)
+int ROTATION_X_DISP(int x, int y, int w);
+
+int ROTATION_Y_DISP(int x, int y, int h);
 
 void surface_ROTATION_transform(gr_surface dst_ptr, const gr_surface src_ptr, size_t num_bytes_per_pixel);