Add human readable rotation logging (#17387)
This commit is contained in:
parent
fcda24be29
commit
8ef798ea51
|
@ -1879,9 +1879,11 @@ bool runloop_environment_cb(unsigned cmd, void *data)
|
||||||
case RETRO_ENVIRONMENT_SET_ROTATION:
|
case RETRO_ENVIRONMENT_SET_ROTATION:
|
||||||
{
|
{
|
||||||
unsigned rotation = *(const unsigned*)data;
|
unsigned rotation = *(const unsigned*)data;
|
||||||
|
unsigned rotation_v[4] = {0, 90, 180, 270};
|
||||||
bool video_allow_rotate = settings->bools.video_allow_rotate;
|
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)
|
if (sys_info)
|
||||||
sys_info->core_requested_rotation = rotation;
|
sys_info->core_requested_rotation = rotation;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue