projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cce197c
)
Fix computation of screen width and height on Haiku
author
Po Lu
<luangruo@yahoo.com>
Fri, 17 Jun 2022 06:58:20 +0000
(06:58 +0000)
committer
Po 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
patch
|
blob
|
history
diff --git
a/src/haiku_support.cc
b/src/haiku_support.cc
index 182f2128473597e2793e83d1dadef1e7972aef43..e09f886990e188be6a48a90d146758db8fd2569c 100644
(file)
--- 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. */