diff --git a/src/backends/native/meta-kms-update.h b/src/backends/native/meta-kms-update.h index 096c19eaf..d50295d30 100644 --- a/src/backends/native/meta-kms-update.h +++ b/src/backends/native/meta-kms-update.h @@ -209,6 +209,12 @@ meta_fixed_16_to_int (MetaFixed16 fixed) return fixed / (1 << 16); } +static inline MetaFixed16 +meta_fixed_16_from_double (double d) +{ + return d * (1 << 16); +} + static inline double meta_fixed_16_to_double (MetaFixed16 fixed) {