]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix computation of screen width and height on Haiku
authorPo Lu <luangruo@yahoo.com>
Fri, 17 Jun 2022 06:58:20 +0000 (06:58 +0000)
committerPo Lu <luangruo@yahoo.com>
Fri, 17 Jun 2022 06:58:20 +0000 (06:58 +0000)
* src/haiku_support.cc (be_get_screen_dimensions): Use correct
macros to extract width and height.

src/haiku_support.cc

index 182f2128473597e2793e83d1dadef1e7972aef43..e09f886990e188be6a48a90d146758db8fd2569c 100644 (file)
@@ -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.  */