From 10d23f4ed4a7cded2f6177f35b8d9aa9c3686d72 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 17 Jun 2022 06:58:20 +0000 Subject: [PATCH] Fix computation of screen width and height on Haiku * src/haiku_support.cc (be_get_screen_dimensions): Use correct macros to extract width and height. --- src/haiku_support.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 182f2128473..e09f886990e 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -3474,8 +3474,8 @@ be_get_screen_dimensions (int *width, int *height) frame = screen.Frame (); - *width = 1 + frame.right - frame.left; - *height = 1 + frame.bottom - frame.top; + *width = BE_RECT_WIDTH (frame); + *height = BE_RECT_HEIGHT (frame); } /* Resize VIEW to WIDTH, HEIGHT. */ -- 2.39.2