From 94302056390749df9dce392d2b8f44e2d099a3c0 Mon Sep 17 00:00:00 2001 From: ayin Date: Sat, 24 Nov 2007 10:32:32 +0000 Subject: [PATCH] Do not compile in the block builtin graphics with --disable-frills. --- Changes | 3 +++ src/optinc.h | 9 ++++++--- src/rsinc.h | 4 +++- src/rxvt.h | 1 + src/rxvtfont.C | 8 ++++++-- src/xdefaults.C | 4 +++- 6 files changed, 22 insertions(+), 7 deletions(-) diff --git a/Changes b/Changes index e2c87381..3f7f5dab 100644 --- a/Changes +++ b/Changes @@ -17,6 +17,9 @@ WISH: load system-wide config file even if we don't have one WISH: look into XAddConnectionWatch, does anybody need that? DUMB: support tex fonts +8.7 + - do not compile in the block builtin graphics with --disable-frills. + 8.6 Fri Nov 23 14:10:57 CET 2007 - upgrade libev to disable kqueue on anything but netbsd as it seems to be broken everywhere else w.r.t. ptys. diff --git a/src/optinc.h b/src/optinc.h index f72af00b..e4e7858f 100644 --- a/src/optinc.h +++ b/src/optinc.h @@ -34,16 +34,19 @@ def(borderLess, 26) // mwm borderless hints def(hold, 27) // hold window open after exit def(override_redirect, 28) - def(skipBuiltinGlyphs, 29) // do not use internal glyphs - def(urgentOnBell, 30) + def(urgentOnBell, 29) #else nodef(insecure) nodef(borderLess) nodef(hold) nodef(override_redirect) - nodef(skipBuiltinGlyphs) nodef(urgentOnBell) #endif +#ifdef BUILTIN_GLYPHS + def(skipBuiltinGlyphs, 30) // do not use internal glyphs +#else + nodef(skipBuiltinGlyphs) +#endif #if ENABLE_STYLES def(intensityStyles, 31) // font styles imply intensity #else diff --git a/src/rsinc.h b/src/rsinc.h index 97ac52c7..60f45642 100644 --- a/src/rsinc.h +++ b/src/rsinc.h @@ -77,9 +77,11 @@ def (borderLess) def (lineSpace) def (cursorUnderline) - def (skipBuiltinGlyphs) def (urgentOnBell) #endif +#ifdef BUILTIN_GLYPHS + def (skipBuiltinGlyphs) +#endif #if CURSOR_BLINK def (cursorBlink) #endif diff --git a/src/rxvt.h b/src/rxvt.h index 7aa0a0d9..c7ef1697 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -20,6 +20,7 @@ # define ENABLE_XIM_ONTHESPOT 1 # define CURSOR_BLINK 1 # define OPTION_HC 1 +# define BUILTIN_GLYPHS 1 #else # define ENABLE_MINIMAL 1 #endif diff --git a/src/rxvtfont.C b/src/rxvtfont.C index e140daae..d8ac1099 100644 --- a/src/rxvtfont.C +++ b/src/rxvtfont.C @@ -264,8 +264,6 @@ rxvt_font::clear_rect (rxvt_drawable &d, int x, int y, int w, int h, int color) ///////////////////////////////////////////////////////////////////////////// -#include "table/linedraw.h" - struct rxvt_font_default : rxvt_font { struct rxvt_fontset *fs; @@ -358,8 +356,10 @@ rxvt_font_default::draw (rxvt_drawable &d, int x, int y, int width = text - tp; int fwidth = term->fwidth * width; +#ifdef BUILTIN_GLYPHS if (0x2500 <= t && t <= 0x259f) { +# include "table/linedraw.h" uint16_t offs = linedraw_offs[t - 0x2500]; uint32_t *a = linedraw_command + (offs >> 4); uint32_t *b = a + (offs & 15); @@ -436,6 +436,10 @@ rxvt_font_default::draw (rxvt_drawable &d, int x, int y, } } } +#else + if (0) + ; +#endif #if ENABLE_COMBINING else if (IS_COMPOSE (t) && (cc = rxvt_composite[t])) { diff --git a/src/xdefaults.C b/src/xdefaults.C index 0331a73d..90d96917 100644 --- a/src/xdefaults.C +++ b/src/xdefaults.C @@ -227,9 +227,11 @@ optList[] = { STRG (Rs_ext_bwidth, NULL, "borderwidth", NULL, NULL), STRG (Rs_int_bwidth, "internalBorder", "b", "number", "internal border in pixels"), BOOL (Rs_borderLess, "borderLess", "bl", Opt_borderLess, 0, "borderless window"), - BOOL (Rs_skipBuiltinGlyphs, "skipBuiltinGlyphs", "sbg", Opt_skipBuiltinGlyphs, 0, "do not use internal glyphs"), STRG (Rs_lineSpace, "lineSpace", "lsp", "number", "number of extra pixels between rows"), #endif +#ifdef BUILTIN_GLYPHS + BOOL (Rs_skipBuiltinGlyphs, "skipBuiltinGlyphs", "sbg", Opt_skipBuiltinGlyphs, 0, "do not use internal glyphs"), +#endif #ifdef POINTER_BLANK RSTRG (Rs_pointerBlankDelay, "pointerBlankDelay", "number"), #endif -- 2.34.1