diff options
Diffstat (limited to 'www/lynx/patches/patch-bf')
-rw-r--r-- | www/lynx/patches/patch-bf | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/lynx/patches/patch-bf b/www/lynx/patches/patch-bf new file mode 100644 index 00000000000..bebcdeeb190 --- /dev/null +++ b/www/lynx/patches/patch-bf @@ -0,0 +1,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; |