From 4ff3479544d6a913f12a1a0a1dbf41f7fde5ff1a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 25 Apr 1998 23:07:46 +0000 Subject: [PATCH] (FRAME_CURSOR_X_LIMIT): New macro. --- src/frame.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frame.h b/src/frame.h index ae2441f2c24..2afefa2907f 100644 --- a/src/frame.h +++ b/src/frame.h @@ -402,6 +402,9 @@ typedef struct frame *FRAME_PTR; #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) -- 2.39.2