mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2025-01-03 03:15:21 +00:00
lib: fix height usage in aspect ratio
This commit is contained in:
parent
d20dcd2674
commit
d8d2b60a93
@ -101,7 +101,7 @@ static double
|
|||||||
mks_cairo_framebuffer_get_intrinsic_aspect_ratio (GdkPaintable *paintable)
|
mks_cairo_framebuffer_get_intrinsic_aspect_ratio (GdkPaintable *paintable)
|
||||||
{
|
{
|
||||||
double width = gdk_paintable_get_intrinsic_width (paintable);
|
double width = gdk_paintable_get_intrinsic_width (paintable);
|
||||||
double height = gdk_paintable_get_intrinsic_width (paintable);
|
double height = gdk_paintable_get_intrinsic_height (paintable);
|
||||||
|
|
||||||
return width / height;
|
return width / height;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user