recovery: Correct touch position with overscan
Change-Id: I9739040cf968961944f9e1e6eae4929b57f51d41
diff --git a/minui/graphics.cpp b/minui/graphics.cpp
index f5a5044..c78e0b3 100644
--- a/minui/graphics.cpp
+++ b/minui/graphics.cpp
@@ -435,6 +435,24 @@
: gr_draw->height - 2 * overscan_offset_y;
}
+int gr_fb_width_real() {
+ return (rotation == GRRotation::LEFT || rotation == GRRotation::RIGHT) ? gr_draw->height
+ : gr_draw->width;
+}
+
+int gr_fb_height_real() {
+ return (rotation == GRRotation::LEFT || rotation == GRRotation::RIGHT) ? gr_draw->width
+ : gr_draw->height;
+}
+
+int gr_overscan_offset_x() {
+ return overscan_offset_x;
+}
+
+int gr_overscan_offset_y() {
+ return overscan_offset_y;
+}
+
void gr_fb_blank(bool blank) {
gr_backend->Blank(blank);
}