diff options
author | Alex Bennée <alex@bennee.com> | 2014-12-27 14:18:01 +0000 |
---|---|---|
committer | Greg Bellows <greg.bellows@linaro.org> | 2015-01-15 16:18:38 -0600 |
commit | a1893d15c3f26e8c491c35a4e1f3dd602aa8555a (patch) | |
tree | 45a7def67df4af6bf2def4fe792f674865f55b2d | |
parent | 07e3c3775e0065f3ccc6f1755b1da016d1f21cf0 (diff) |
ranchu: set global graphic_rotation variable to map input events
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
-rw-r--r-- | hw/arm/ranchu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/arm/ranchu.c b/hw/arm/ranchu.c index f483094da..2901b3f8a 100644 --- a/hw/arm/ranchu.c +++ b/hw/arm/ranchu.c @@ -476,15 +476,19 @@ static void android_console_rotate_screen(Monitor *mon, const QDict *qdict) switch (ranchu_rotation_state) { case 0: goldfish_fb_set_rotation(0); + graphic_rotate = 0; break; case 1: goldfish_fb_set_rotation(3); + graphic_rotate = 90; break; case 2: goldfish_fb_set_rotation(2); + graphic_rotate = 180; break; case 3: goldfish_fb_set_rotation(1); + graphic_rotate = 270; break; default: g_assert_not_reached(); |