*** empty log message ***
authorpcg <pcg>
Mon, 29 Mar 2004 21:02:10 +0000 (21:02 +0000)
committerpcg <pcg>
Mon, 29 Mar 2004 21:02:10 +0000 (21:02 +0000)
README.configure
autoconf/config.h.in
autoconf/configure.in
doc/yodl/rxvt-options.yo
doc/yodl/rxvt-resources.yo
reconf
src/rxvtcolor.C
src/rxvtcolor.h

index 8207a2f315984a9d9a1f87a94fd1dbb69c2e2b21..ca74520aef9b9ae81d5ec4d9d76ba3ac6e749381 100644 (file)
@@ -73,6 +73,8 @@ report when a combination doesn't work, so it cnya be fixed. Marc Lehmann
 --enable-transparency
        add support for inheriting parent backgrounds thus giving a fake
        transparency to the term
+--enable-tinting
+       add support for tinting of transparent backgrounds.
 --enable-menubar
        add support for our menu bar system (this interacts badly with
         dynamic locale switching currently)
index 4e4142f423e00d20ffb6292098e60e98e78eb9e2..d5368d89e041956418f8ec95040b5aebe559cec9 100644 (file)
 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
 #undef TIME_WITH_SYS_TIME
 
+/* Define if you want your background to be tinted */
+#undef TINTING
+
 /* Define if you want your background to use the parent window background */
 #undef TRANSPARENT
 
index 3839e089463482448d595e4e85a4d99ffddde322..18f4d5c065d099859a4f56737eb735f090206b7b 100644 (file)
@@ -62,6 +62,7 @@ support_addstrings=no
 support_frills=no
 support_linespace=no
 support_inheritpixmap=no
+support_tinting=no
 support_keepscrolling=no
 support_selectionscrolling=no
 support_menubar=no 
@@ -103,6 +104,7 @@ AC_ARG_ENABLE(everything,
     support_frills=yes
     support_linespace=yes
     support_inheritpixmap=yes
+    support_tinting=yes
     support_keepscrolling=yes
     support_selectionscrolling=yes
     support_lastlog=yes
@@ -174,6 +176,12 @@ AC_ARG_ENABLE(transparency,
     support_inheritpixmap=$enableval
   fi])
 
+AC_ARG_ENABLE(tinting,
+  [  --enable-tinting        enable tinting of transparent bg],
+  [if test x$enableval = xyes -o x$enableval = xno; then
+    support_tinting=$enableval
+  fi])
+
 AC_ARG_ENABLE(menubar,
   [  --enable-menubar        enable menubar],
   [if test x$enableval = xyes -o x$enableval = xno; then
@@ -1152,6 +1160,9 @@ AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
 dnl# --------------------------------------------------------------------------
 dnl# now add and remove other stuff
 dnl# --------------------------------------------------------------------------
+if test x$support_tinting = xyes; then
+  AC_DEFINE(TINTING, 1, Define if you want your background to be tinted)
+fi
 if test x$support_inheritpixmap = xyes; then
   AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background)
 fi
index 9c6fb7ba4bc7b7016b0bfd0e67dabab25df84296..e740a57e0f3dc2f5e1bf644bf138760011eb5f40 100644 (file)
@@ -1,4 +1,4 @@
-COMMENT(-- $Id: rxvt-options.yo,v 1.8 2004-03-29 16:52:06 pcg Exp $ --)
+COMMENT(-- $Id: rxvt-options.yo,v 1.9 2004-03-29 21:02:11 pcg Exp $ --)
 COMMENT(----------------------------------------------------------------------)
 manpageoptions()
 
@@ -39,6 +39,8 @@ startdit()
        Turn on/off inheriting parent window's pixmap.  Alternative form
        is bf(-tr);
        resource bf(inheritPixmap).
+    dit(bf(-tint) em(colour))
+        Tint the transparent background pixmap with the given colour.
     dit(bf(-bg) em(colour))
        Window background colour;
         resource bf(background).
index ed3d2e30bfc773fbd9fcbeeb8b825283c428c36d..d66ed373cc3f1fe15ab82cb13832d5929f92d1ac 100644 (file)
@@ -1,4 +1,4 @@
-COMMENT(-- $Id: rxvt-resources.yo,v 1.8 2004-03-29 16:52:06 pcg Exp $ --)
+COMMENT(-- $Id: rxvt-resources.yo,v 1.9 2004-03-29 21:02:11 pcg Exp $ --)
 COMMENT(----------------------------------------------------------------------)
 manpagesection(RESOURCES (available also as long-options))
 
@@ -72,6 +72,8 @@ startdit()
        bf(True): make the background inherit the parent windows' pixmap,
        giving artificial transparency.
        bf(False): do not inherit the parent windows' pixmap.
+    dit(bf(tintColor) em(colour))
+        Tint the transparent background pixmap with the given colour.
     dit(bf(scrollColor:) em(colour))
        Use the specified colour for the scrollbar [default #B2B2B2].
     dit(bf(troughColor:) em(colour))
diff --git a/reconf b/reconf
index 8b79b72e70ad06d2e645efbc4670d3db6733836e..6ce827257d8874eeaada822c0e7a0f7a452defe8 100755 (executable)
--- a/reconf
+++ b/reconf
@@ -8,7 +8,7 @@
             --with-term=rxvt --enable-keepscrolling --enable-xft \
             --with-name=rxvt --enable-selectionscrolling \
             --enable-frills --enable-swapscreen --enable-transparency \
-            --with-codesets=eu,jp --enable-menubar \
+            --with-codesets=eu,jp --enable-menubar --enable-tinting \
             --enable-cursor-blink --enable-pointer-blank --enable-text-blink \
             --enable-plain-scroll --enable-combining \
             "$@"
index 7b91847fef6136686437a2ce2376a9147f3b5b65..5dce83453a82f135a0d7f79da0abaf1c604e84d3 100644 (file)
@@ -5,6 +5,23 @@
 #include <unistd.h>
 #include <fcntl.h>
 
+class byteorder byteorder;
+
+byteorder::byteorder ()
+{
+  union {
+    uint32_t u;
+    uint8_t b[4];
+  } w;
+
+  w.b[0] = 0x11;
+  w.b[1] = 0x22;
+  w.b[2] = 0x33;
+  w.b[3] = 0x44;
+
+  e = w.u;
+}
+
 refcounted::refcounted (const char *id)
 {
   this->id = STRDUP (id);
index 5f33aa79029411115e427986991e16a44346c4ae..7baa96eddb506c01f1005f5c73e6c39493a32070 100644 (file)
 
 #include "callback.h"
 
+extern class byteorder {
+  uint32_t e;
+public:
+  byteorder ();
+
+  bool big_endian    () { return e == 0x11223344; };
+  bool network       () { return e == 0x11223344; };
+  bool little_endian () { return e == 0x44332211; };
+  bool vax           () { return e == 0x44332211; };
+} byteorder;
+
 struct rxvt_term;
 
 struct im_watcher;