drm: allow changes from portait mode to landscape
This commit is contained in:
parent
1b4231e33b
commit
3cbf958680
1 changed files with 2 additions and 5 deletions
|
@ -1085,11 +1085,8 @@ bool drm_set_mode( struct drm_t *drm, const drmModeModeInfo *mode )
|
|||
g_nOutputHeight = mode->vdisplay;
|
||||
g_nOutputRefresh = mode->vrefresh;
|
||||
|
||||
if ( g_nOutputWidth < g_nOutputHeight )
|
||||
{
|
||||
// We probably don't want to be in portrait mode, rotate
|
||||
g_bRotated = true;
|
||||
}
|
||||
// Auto-detect portrait mode
|
||||
g_bRotated = g_nOutputWidth < g_nOutputHeight;
|
||||
|
||||
if ( g_bRotated )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue