From 7bf2fbde75ae6117ae7f511e8db1603d6c233590 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 5 Oct 2017 12:47:16 +0200 Subject: [PATCH] add missing declaration of old_x11 --- src/frontend/plotting/grid.c | 4 ++++ src/frontend/plotting/x11.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/frontend/plotting/grid.c b/src/frontend/plotting/grid.c index 31d04a51e..588da69ae 100644 --- a/src/frontend/plotting/grid.c +++ b/src/frontend/plotting/grid.c @@ -36,6 +36,10 @@ extern bool old_x11; extern int X11_GetLenStr(GRAPH *gr, char* instring); #endif +#ifndef X_DISPLAY_MISSING +extern bool old_x11; +#endif + #define RAD_TO_DEG (180.0 / M_PI) #define RELPOSXUNIT 0.6 /* old position of the UNIT label */ diff --git a/src/frontend/plotting/x11.c b/src/frontend/plotting/x11.c index e7d0d9626..c846218e0 100644 --- a/src/frontend/plotting/x11.c +++ b/src/frontend/plotting/x11.c @@ -60,6 +60,8 @@ Author: 1988 Jeffrey M. Hsu #define NUMCOLORS 20 +bool old_x11 = FALSE; /* if FALSE, use xft, if TRUE use old X11 text output */ + typedef struct x11info { Window window; int isopen;