From ebe2b6fd0dc978f592fdf02f3cf650cefac55fbb Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 19 Jan 2022 06:00:13 +0000 Subject: [PATCH] * src/haikufns.c (Fx_display_mm_width): Fix copy-paste error. --- src/haikufns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haikufns.c b/src/haikufns.c index d0436bbb96d..58a2e1d4642 100644 --- a/src/haikufns.c +++ b/src/haikufns.c @@ -1876,7 +1876,7 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, int width, height; BScreen_px_dim (&width, &height); - return make_fixnum (height / (dpyinfo->resy / 25.4)); + return make_fixnum (width / (dpyinfo->resx / 25.4)); } DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, -- 2.39.2