mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 08:24:09 +00:00
meta-monitor-manager: Remove bogus condition from check
An unsigned number is never smaller than 0, so we don't have to check for it.
This commit is contained in:
parent
bc00f118f3
commit
67d3a7a2d7
@ -884,8 +884,7 @@ meta_monitor_manager_handle_apply_configuration (MetaDBusDisplayConfig *skeleto
|
|||||||
crtc_info->y = 0;
|
crtc_info->y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transform < META_MONITOR_TRANSFORM_NORMAL ||
|
if (transform > META_MONITOR_TRANSFORM_FLIPPED_270 ||
|
||||||
transform > META_MONITOR_TRANSFORM_FLIPPED_270 ||
|
|
||||||
((crtc->all_transforms & (1 << transform)) == 0))
|
((crtc->all_transforms & (1 << transform)) == 0))
|
||||||
{
|
{
|
||||||
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
|
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user