emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 10d23f4ed4: Fix computation of screen width and height on Haiku


From: Po Lu
Subject: master 10d23f4ed4: Fix computation of screen width and height on Haiku
Date: Fri, 17 Jun 2022 03:00:17 -0400 (EDT)

branch: master
commit 10d23f4ed4a7cded2f6177f35b8d9aa9c3686d72
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 182f212847..e09f886990 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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]