From a507d4ecbab44103af3794be4dc8c9f80884dfc2 Mon Sep 17 00:00:00 2001 From: sonninnos Date: Fri, 10 Jan 2025 16:20:23 +0200 Subject: [PATCH] Add human readable rotation logging --- runloop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runloop.c b/runloop.c index 0f34c0bec2d..7cc1c35f975 100644 --- a/runloop.c +++ b/runloop.c @@ -1879,9 +1879,11 @@ bool runloop_environment_cb(unsigned cmd, void *data) case RETRO_ENVIRONMENT_SET_ROTATION: { unsigned rotation = *(const unsigned*)data; + unsigned rotation_v[4] = {0, 90, 180, 270}; bool video_allow_rotate = settings->bools.video_allow_rotate; - RARCH_DBG("[Environ]: SET_ROTATION: %u\n", rotation); + RARCH_DBG("[Environ]: SET_ROTATION: \"%u\" (%udeg).\n", rotation, rotation_v[rotation % 4]); + if (sys_info) sys_info->core_requested_rotation = rotation;