From 3099f96171c69d65a1b7add77e9a7356b073d92b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 3 Jun 2003 21:19:00 +0000 Subject: 2003-04-29 Marco Gerards * 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. --- console/display.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'console/display.c') 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); -- cgit v1.2.3