lib: fix height usage in aspect ratio

This commit is contained in:
Christian Hergert 2023-02-14 10:37:12 -08:00
parent d20dcd2674
commit d8d2b60a93

View File

@ -101,7 +101,7 @@ static double
mks_cairo_framebuffer_get_intrinsic_aspect_ratio (GdkPaintable *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;
}