Allow toggling g_bRotated more easily
Allow just changing the default variable value to enable rotation.
This commit is contained in:
parent
902fce73b0
commit
b6f5471b62
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue