Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libform * Fixed horizontal scrolling.
details: https://anonhg.NetBSD.org/src/rev/2cbf98766134
branches: trunk
changeset: 508106:2cbf98766134
user: blymn <blymn%NetBSD.org@localhost>
date: Fri Apr 06 05:24:59 2001 +0000
description:
* Fixed horizontal scrolling.
diffstat:
lib/libform/field.c | 3 +--
lib/libform/form.c | 9 ++++-----
lib/libform/form.h | 3 +--
3 files changed, 6 insertions(+), 9 deletions(-)
diffs (64 lines):
diff -r 862dee079750 -r 2cbf98766134 lib/libform/field.c
--- a/lib/libform/field.c Fri Apr 06 05:10:28 2001 +0000
+++ b/lib/libform/field.c Fri Apr 06 05:24:59 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: field.c,v 1.8 2001/03/25 12:21:06 blymn Exp $ */
+/* $NetBSD: field.c,v 1.9 2001/04/06 05:24:59 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
* (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -51,7 +51,6 @@
FALSE, /* set to true if field is in overlay mode */
0, /* starting char in string (horiz scroll) */
0, /* starting line in field (vert scroll) */
- 0, /* amount of horizontal scroll... */
0, /* number of rows actually used in field */
0, /* x pos of cursor in field */
0, /* y pos of cursor in field */
diff -r 862dee079750 -r 2cbf98766134 lib/libform/form.c
--- a/lib/libform/form.c Fri Apr 06 05:10:28 2001 +0000
+++ b/lib/libform/form.c Fri Apr 06 05:24:59 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: form.c,v 1.5 2001/03/25 12:24:47 blymn Exp $ */
+/* $NetBSD: form.c,v 1.6 2001/04/06 05:24:59 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
@@ -544,9 +544,8 @@
cur = form->fields[form->cur_field];
end = _formi_find_eol(cur->buffers[0].string,
- cur->start_char + cur->hscroll
- + cur->cursor_xpos);
- if ((end - cur->start_char - cur->hscroll - cur->cursor_xpos)
+ cur->start_char + cur->cursor_xpos);
+ if ((end - cur->start_char - cur->cursor_xpos)
> cur->cols)
return TRUE;
@@ -567,7 +566,7 @@
cur = form->fields[form->cur_field];
- if ((cur->start_char > 0) || (cur->hscroll > 0))
+ if (cur->start_char > 0)
return TRUE;
return FALSE;
diff -r 862dee079750 -r 2cbf98766134 lib/libform/form.h
--- a/lib/libform/form.h Fri Apr 06 05:10:28 2001 +0000
+++ b/lib/libform/form.h Fri Apr 06 05:24:59 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: form.h,v 1.10 2001/03/25 12:27:22 blymn Exp $ */
+/* $NetBSD: form.h,v 1.11 2001/04/06 05:24:59 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
@@ -202,7 +202,6 @@
int overlay; /* set to true if field is in overlay mode */
unsigned int start_char; /* starting char in string (horiz scroll) */
unsigned int start_line; /* starting line in field (vert scroll) */
- unsigned int hscroll; /* amount of horizontal scroll... */
unsigned int row_count; /* number of rows actually used in field */
unsigned int cursor_xpos; /* x pos of cursor in field */
unsigned int cursor_ypos; /* y pos of cursor in field */
Home |
Main Index |
Thread Index |
Old Index