Allow toggling g_bRotated more easily

Allow just changing the default variable value to enable rotation.
This commit is contained in:
Simon Ser 2021-05-04 16:40:58 +02:00
parent 902fce73b0
commit b6f5471b62

View file

@ -533,7 +533,10 @@ int init_drm(struct drm_t *drm, const char *device, const char *mode_str, unsign
{ {
// We probably don't want to be in portrait mode, rotate // We probably don't want to be in portrait mode, rotate
g_bRotated = true; g_bRotated = true;
}
if ( g_bRotated )
{
g_nOutputWidth = drm->mode->vdisplay; g_nOutputWidth = drm->mode->vdisplay;
g_nOutputHeight = drm->mode->hdisplay; g_nOutputHeight = drm->mode->hdisplay;
} }