aboutsummaryrefslogtreecommitdiff
path: root/console/display.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2003-06-03 21:19:00 +0000
committerMarcus Brinkmann <marcus@gnu.org>2003-06-03 21:19:00 +0000
commit3099f96171c69d65a1b7add77e9a7356b073d92b (patch)
treea10af735e92472be5ebe17a1fd9747b946427bb4 /console/display.c
parente1a049e27ae81f2eac0d59fbdd221710ec2d8ab5 (diff)
downloadhurd-3099f96171c69d65a1b7add77e9a7356b073d92b.tar.gz
hurd-3099f96171c69d65a1b7add77e9a7356b073d92b.tar.bz2
hurd-3099f96171c69d65a1b7add77e9a7356b073d92b.zip
2003-04-29 Marco Gerards <metgerards@student.han.nl>
* display.c (display_create): Added arguments width, height and lines, variables with the same name were removed. * display.h (display_creat): Add missing arguments to prototype. * console.c (DEFAULT_WIDTH): New macro. (DEFAULT_HEIGHT): Likewise. (DEFAULT_LINES): Likewise. (STRX): Likewise. (STR): Likewise. (struct cons): New members lines, width and height. (vcons_lookup): Add missing arguments to display_create. (options): Add options width, height and lines. (parse_opt): Parse width, height and lines. (netfs_append_args): Append arguments width, height and lines. (netfs_append_args): Fix asprintf error checking. (main): Initialize cons with default width, height and lines.
Diffstat (limited to 'console/display.c')
-rw-r--r--console/display.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/console/display.c b/console/display.c
index ac9ef92f..090aaf80 100644
--- a/console/display.c
+++ b/console/display.c
@@ -1,6 +1,6 @@
/* display.c - The display component of a virtual console.
Copyright (C) 1999 Kalle Olavi Niemitalo (emu.c from colortext 0.3).
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
Written by Marcus Brinkmann and Kalle Olavi Niemitalo.
This file is part of the GNU Hurd.
@@ -1801,13 +1801,11 @@ display_init (void)
being ENCODING. */
error_t
display_create (display_t *r_display, const char *encoding,
- conchar_attr_t def_attr)
+ conchar_attr_t def_attr, unsigned int lines,
+ unsigned int width, unsigned int height)
{
error_t err = 0;
display_t display;
- int width = 80;
- int height = 25;
- int lines = 50; /* XXX For now. */
*r_display = NULL;
display = calloc (1, sizeof *display);