drm: allow changes from portait mode to landscape

This commit is contained in:
Simon Ser 2021-07-28 18:46:48 +02:00
parent 1b4231e33b
commit 3cbf958680

View file

@ -1085,11 +1085,8 @@ bool drm_set_mode( struct drm_t *drm, const drmModeModeInfo *mode )
g_nOutputHeight = mode->vdisplay; g_nOutputHeight = mode->vdisplay;
g_nOutputRefresh = mode->vrefresh; g_nOutputRefresh = mode->vrefresh;
if ( g_nOutputWidth < g_nOutputHeight ) // Auto-detect portrait mode
{ g_bRotated = g_nOutputWidth < g_nOutputHeight;
// We probably don't want to be in portrait mode, rotate
g_bRotated = true;
}
if ( g_bRotated ) if ( g_bRotated )
{ {