changeset 21762:b2746acaa663

(FRAME_CURSOR_X_LIMIT): New macro.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Apr 1998 23:07:46 +0000
parents 7c159e118cd4
children b685f9451792
files src/frame.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.h	Sat Apr 25 22:00:26 1998 +0000
+++ b/src/frame.h	Sat Apr 25 23:07:46 1998 +0000
@@ -402,6 +402,9 @@
 #define FRAME_WINDOW_WIDTH_ARG(f, width) \
      ((width) + FRAME_SCROLL_BAR_WIDTH (f))
 #define FRAME_WINDOW_WIDTH(f) ((f)->window_width)
+/* Maximum + 1 legitimate value for FRAME_CURSOR_X.  */
+#define FRAME_CURSOR_X_LIMIT(f) \
+     (FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f))
 #define SET_FRAME_WIDTH(f,val) ((f)->width = (val), (f)->window_width = FRAME_WINDOW_WIDTH_ARG (f, (f)->width))
 #define FRAME_SCROLL_BARS(f) ((f)->scroll_bars)
 #define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars)