From 23b6eebba6447b93e0bfce0f2537141525fa6e9f Mon Sep 17 00:00:00 2001 From: Joseph Pranevich Date: Sat, 20 Feb 1999 16:41:58 +0000 Subject: [PATCH] Removal of obsolete XtermResolution option. --- console/xterm.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/console/xterm.c b/console/xterm.c index 6c846ab9fd1..9926754a76d 100644 --- a/console/xterm.c +++ b/console/xterm.c @@ -20,10 +20,7 @@ #include "options.h" #include "debug.h" -#define ESC '\x1b' - char console_xterm_prog[80]; -char console_xterm_resolution[10]; static BOOL32 wine_create_console(FILE **master, FILE **slave, int *pid); FILE *wine_openpty(int *master, int *slave, char *name, @@ -60,8 +57,6 @@ void XTERM_Start() /* Read in driver configuration */ PROFILE_GetWineIniString("console", "XtermProg", "xterm", console_xterm_prog, 79); - PROFILE_GetWineIniString("console", "XtermResolution", - "80x24", console_xterm_resolution, 9); } @@ -122,6 +117,10 @@ static BOOL32 wine_create_console(FILE **master, FILE **slave, int *pid) int status = 0; int i; int tmaster, tslave; + char xterm_resolution[10]; + + sprintf(xterm_resolution, "%dx%d", driver.x_res, + driver.y_res); if (tcgetattr(0, &term) < 0) return FALSE; term.c_lflag |= ICANON; @@ -136,7 +135,7 @@ static BOOL32 wine_create_console(FILE **master, FILE **slave, int *pid) sprintf(buf, "-Sxx%d", fileno(*master)); execlp(console_xterm_prog, console_xterm_prog, buf, "-fg", "white", "-bg", "black", "-g", - console_xterm_resolution, NULL); + xterm_resolution, NULL); ERR(console, "error creating xterm (file not found?)\n"); exit(1); }