monitor-manager-kms: Fix a crash getting a crtc-less output's scale
https://bugzilla.gnome.org/show_bug.cgi?id=745476
This commit is contained in:
parent
db9645fcb3
commit
9c6e6ea381
@ -280,6 +280,9 @@ compute_scale (MetaOutput *output)
|
|||||||
{
|
{
|
||||||
int scale = 1;
|
int scale = 1;
|
||||||
|
|
||||||
|
if (!output->crtc)
|
||||||
|
goto out;
|
||||||
|
|
||||||
/* Scaling makes no sense */
|
/* Scaling makes no sense */
|
||||||
if (output->crtc->rect.width < HIDPI_MIN_HEIGHT)
|
if (output->crtc->rect.width < HIDPI_MIN_HEIGHT)
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user