display: Mode compare takes interlaced into account

When changing the display mode, the apply button does not appear if the
current mode and new mode differ only in their interlaced flag.

The display mode comparison function now takes the interlaced flag into
account.
This commit is contained in:
Alex Hirsch 2018-11-10 20:38:02 +01:00
parent 4e6aa67fa4
commit b4809cd210

View file

@ -70,7 +70,8 @@ cc_display_mode_dbus_equal (const CcDisplayModeDBus *m1,
return m1->width == m2->width &&
m1->height == m2->height &&
m1->refresh_rate == m2->refresh_rate;
m1->refresh_rate == m2->refresh_rate &&
(m1->flags & MODE_INTERLACED) == (m2->flags & MODE_INTERLACED);
}
static void