shithub: drawterm

Download patch

ref: 78a654c8a70d4c041c8860820142ea89f167b8b4
parent: f85ef344505b687ed057d5f452db033292253f00
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Apr 26 07:44:18 EDT 2016

make tuttle glenda icon for gui-x11

--- /dev/null	Thu Apr  7 21:41:36 2022
+++ b/glenda-t.xbm	Tue Apr 26 07:44:18 2016
@@ -0,0 +1,46 @@
+#define glenda_t_width 64
+#define glenda_t_height 64
+static unsigned char glenda_t_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x03, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x40, 0x04, 0xc4,
+   0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x84, 0x01, 0x00, 0x00, 0x00,
+   0x00, 0x10, 0x20, 0x84, 0x13, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x88,
+   0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x08, 0x27, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x0b, 0x88, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x00,
+   0x4f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x11, 0x0f, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x38, 0x10, 0x8e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0xf2,
+   0x9f, 0x00, 0x00, 0x00, 0x00, 0x40, 0x78, 0xff, 0xff, 0x01, 0x00, 0x00,
+   0x00, 0x00, 0xf0, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff,
+   0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0xf1, 0xff, 0xff, 0x3f, 0x00, 0x00,
+   0x00, 0x00, 0xfa, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff,
+   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x7f, 0x70, 0xdb, 0x01, 0x00,
+   0x00, 0x00, 0xfe, 0x07, 0x80, 0x7f, 0x01, 0x00, 0x00, 0x00, 0xff, 0x01,
+   0x00, 0xfc, 0x03, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0xb8, 0x01, 0x00,
+   0x00, 0x00, 0x7f, 0x00, 0x00, 0x70, 0x03, 0x00, 0x00, 0x00, 0x3f, 0x00,
+   0x00, 0xf0, 0x01, 0x00, 0x00, 0x80, 0xbf, 0x6a, 0xff, 0xff, 0x1f, 0x00,
+   0x00, 0xc0, 0xef, 0xdb, 0x7f, 0xeb, 0x3b, 0x00, 0x00, 0xc0, 0xff, 0xff,
+   0xf7, 0xd7, 0x3f, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xfe, 0x37, 0x00,
+   0x00, 0xe0, 0xff, 0x6f, 0xd4, 0xfd, 0x23, 0x00, 0x00, 0x00, 0xff, 0x3f,
+   0x10, 0x9f, 0x17, 0x00, 0x00, 0x80, 0x0f, 0x00, 0x00, 0x80, 0x0e, 0x00,
+   0x00, 0x80, 0x07, 0x40, 0x01, 0x81, 0x07, 0x00, 0x00, 0x80, 0x07, 0x50,
+   0x0f, 0x86, 0x03, 0x00, 0x00, 0x80, 0x0f, 0x50, 0xf4, 0x8f, 0x03, 0x00,
+   0x00, 0x80, 0x1f, 0xc0, 0xf5, 0x9a, 0x03, 0x00, 0x00, 0x80, 0x1f, 0x00,
+   0x83, 0xc2, 0x03, 0x00, 0x00, 0x80, 0x3f, 0x00, 0x82, 0xc0, 0x03, 0x00,
+   0x00, 0xf0, 0x7f, 0x00, 0x08, 0xe0, 0x03, 0x00, 0x00, 0xf8, 0x7f, 0x00,
+   0x00, 0xf0, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x00, 0x00, 0xf8, 0xff, 0x03,
+   0x00, 0xfc, 0xff, 0x01, 0x00, 0xf8, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x01,
+   0x00, 0xfc, 0xff, 0x7f, 0x00, 0xf8, 0xff, 0x03, 0x00, 0xfc, 0xff, 0xff,
+   0x00, 0xfc, 0xff, 0x07, 0x00, 0xfe, 0xff, 0xff, 0x00, 0xfe, 0xff, 0x0f,
+   0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0x3f, 0xe0, 0xff, 0xbf, 0xfe,
+   0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xff, 0xff, 0xff,
+   0xff, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff,
+   0xf0, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xff,
+   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xff,
+   0xdf, 0xb6, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7d, 0xff, 0xff,
+   0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+   0xff, 0xcf, 0xff, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xeb,
+   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
--- a/gui-x11/Makefile	Mon Apr 25 16:44:03 2016
+++ b/gui-x11/Makefile	Tue Apr 26 07:44:18 2016
@@ -11,3 +11,5 @@
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
 
+x11.$O:	../glenda-t.xbm
+
--- a/gui-x11/x11.c	Mon Apr 25 16:44:03 2016
+++ b/gui-x11/x11.c	Tue Apr 26 07:44:18 2016
@@ -49,26 +49,7 @@
 static	XImage*		xscreenimage;
 static	Visual		*xvis;
 
-#define glenda_width 48
-#define glenda_height 48
-static unsigned short glenda_bits[] = {
-   0xffff, 0xffff, 0xffff, 0xffff, 0xffe9, 0xffff, 0x7fff, 0xffae, 0xffff,
-   0xffff, 0xffbe, 0xffff, 0x1fff, 0xff3f, 0xffff, 0xbfff, 0xfe6e, 0xffff,
-   0xbbff, 0xfcce, 0xffff, 0xffff, 0xf98c, 0xffff, 0xe5ff, 0xf31b, 0xffff,
-   0x87ff, 0xe617, 0xffff, 0x05ff, 0xdf37, 0xffff, 0x0fff, 0x7ffe, 0xffff,
-   0x1bff, 0xfffc, 0xfffa, 0x37ff, 0xfffc, 0xfffb, 0xd7ff, 0xfffc, 0xfff7,
-   0xcfff, 0xffff, 0xfff7, 0xcfff, 0xffff, 0xffef, 0xdfff, 0xffff, 0xffef,
-   0xafff, 0xffff, 0xffdf, 0xefff, 0xffff, 0xfff3, 0xdfff, 0xefff, 0xffd3,
-   0xdfff, 0xc7ff, 0xffdf, 0xefff, 0xefff, 0xffef, 0xcfff, 0xffff, 0xffcf,
-   0xdfff, 0xffff, 0xffd9, 0x9fff, 0x7fff, 0xffd0, 0xbfff, 0xffff, 0xffd7,
-   0x7fff, 0xbfff, 0xffd0, 0x3fff, 0x3fff, 0xffd9, 0x7fff, 0x3fff, 0xffcb,
-   0x3fff, 0xffff, 0xffdc, 0x3fff, 0xffff, 0xffdf, 0x3fff, 0xffff, 0xff9f,
-   0x3fff, 0xffff, 0xffdf, 0x8fff, 0xffff, 0xff9f, 0xa7ff, 0xffff, 0xffdf,
-   0xe3ff, 0xffff, 0xffcf, 0xe9ff, 0xffff, 0xffcf, 0xf1ff, 0xffff, 0xffef,
-   0xf3ff, 0xffff, 0xffe7, 0xf9ff, 0xffff, 0xffe7, 0x53ff, 0xffff, 0xffe1,
-   0x07ff, 0x7ffc, 0xffc6, 0x17ff, 0xeff0, 0xffee, 0xffff, 0xc781, 0xffe5,
-   0xffff, 0x8807, 0xffe0, 0xffff, 0x003f, 0xfff0, 0xffff, 0x1fff, 0xfffe
-};
+#include "../glenda-t.xbm"
 
 Memimage*
 xallocmemimage(Rectangle r, ulong chan, int pmid, XImage **X)
@@ -462,8 +443,8 @@
 
 	/* load the given bitmap data and create an X pixmap containing it. */
 	icon_pixmap = XCreateBitmapFromData(xdisplay,
-		rootwin, (char *)glenda_bits,
-		glenda_width, glenda_height);
+		rootwin, (char *)glenda_t_bits,
+		glenda_t_width, glenda_t_height);
 
 	/*
 	 * set up property as required by ICCCM