mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
monitor-transform: Don't call abs on non-negative enum
It causes Clang to show a lot of warnings during compilation because it thinks the abs call is useless. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1234
This commit is contained in:
parent
e06daa58c3
commit
d823a54b5d
@ -49,7 +49,7 @@ meta_monitor_transform_is_rotated (MetaMonitorTransform transform)
|
||||
static inline gboolean
|
||||
meta_monitor_transform_is_flipped (MetaMonitorTransform transform)
|
||||
{
|
||||
return (abs(transform) >= META_MONITOR_TRANSFORM_FLIPPED);
|
||||
return (transform >= META_MONITOR_TRANSFORM_FLIPPED);
|
||||
}
|
||||
|
||||
MetaMonitorTransform meta_monitor_transform_invert (MetaMonitorTransform transform);
|
||||
|
Loading…
Reference in New Issue
Block a user