summaryrefslogtreecommitdiff
path: root/www/lynx/patches/patch-bf
blob: bebcdeeb1903a4aae1a61f68218c9f8f351daaa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-bf,v 1.1 2006/05/29 16:58:18 drochner Exp $

--- src/LYCurses.h.orig	2004-01-28 20:30:38.000000000 +0100
+++ src/LYCurses.h
@@ -365,6 +365,24 @@ extern long LYgetattrs PARAMS((WINDOW *w
 extern int LYlines;	/* replaces LINES */
 extern int LYcols;	/* replaces COLS */
 
+/*
+ * The scrollbar, if used, occupies the rightmost column.
+ */
+#ifdef USE_SCROLLBAR
+#define LYbarWidth (LYShowScrollbar ? 1 : 0)
+#else
+#define LYbarWidth 0
+#endif
+
+/*
+ * Usable limits for display:
+ */
+#if defined(FANCY_CURSES) || defined(USE_SLANG)
+#define LYcolLimit (LYcols - LYbarWidth)
+#else
+#define LYcolLimit (LYcols - 1)
+#endif
+
 #ifdef USE_CURSES_PADS
 extern WINDOW *LYwin;
 extern int LYshiftWin;