mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
kms: Add a trivial meta_fixed_16_to_double conversion function
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1923>
This commit is contained in:
parent
ea75ea0b73
commit
b59c5386b9
@ -158,6 +158,12 @@ meta_fixed_16_to_int (MetaFixed16 fixed)
|
|||||||
return fixed / 65536;
|
return fixed / 65536;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline double
|
||||||
|
meta_fixed_16_to_double (MetaFixed16 fixed)
|
||||||
|
{
|
||||||
|
return fixed / 65536.0;
|
||||||
|
}
|
||||||
|
|
||||||
static inline MetaRectangle
|
static inline MetaRectangle
|
||||||
meta_fixed_16_rectangle_to_rectangle (MetaFixed16Rectangle fixed_rect)
|
meta_fixed_16_rectangle_to_rectangle (MetaFixed16Rectangle fixed_rect)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user