Skip to content

Commit

Permalink
Add human readable rotation logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos committed Jan 10, 2025
1 parent 1e32a1e commit feca306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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\" (%u deg).\n", rotation, rotation_v[rotation % 4]);

if (sys_info)
sys_info->core_requested_rotation = rotation;

Expand Down

0 comments on commit feca306

Please sign in to comment.