repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: de858bd60cb6e91717eae2a8da2e3f9c2e4bd233: path_to: revision_to:
commit de858bd60cb6e91717eae2a8da2e3f9c2e4bd233 Author: Emanuele GiaquintaDate: Sat Nov 24 10:32:33 2007 +0000 Do not compile in the block builtin graphics with --disable-frills. diff --git a/Changes b/Changes
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
-----END OF PAGE-----