MacMininx Home

Pliner Solutions

Color Icons for MacMinix

Thanks to Sunagawa Keiki for this fix!

Sunagawa Keiki posted this patch on comp.os.minix some time ago, and he resent it to me for the site. This patch does not simply paste over the current icons, but it also patches the resource file in the MacMinix file system so that successive builds will also have the new icons.

From Sunagawa Keiki: (Edited slightly)

This patch modifies MacMINIX's built-in rmaker and makes
MacMINIX aplication handle color/small icons introduced in
System 7 as well as b/w icons which have been handled so
far.

Here are the diffs that make MacMINIX handle color icon.

To apply them,

1. Save this file.
2. Cd to /usr/src.
3. do 'patch -s < (saved file).'
4. make new rmaker and macboot.
5. Quit MacMINIX and run Newmacboot.

Notes: You may need to restart your Mac and rebuild the Desktop to
show color icon properly.

Enjoy!

-------- cut here --------

*** tools/minix.rc~	Sat Nov 22 06:28:20 1997
--- tools/minix.rc	Sun Nov 23 00:35:16 1997
***************
*** 103,108 ****
--- 103,529 ----
      0ffffff80ffffff80ffffff80ffffff8

  *
+ *color icon support
+ *
+
+ Type icl8
+   ,128(32)
+     000000000000000000000000000000B0
+     00000000000000000000000000000000
+     0000000000000000000000000000B001
+     B0000000000000000000000000000000
+     00000000000000000000000000B00101
+     01B00000000000000000000000000000
+     000000000000000000000000B0010101
+     0101B000000000000000000000000000
+     0000000000000000000000B001010101
+     010101B0000000000000000000000000
+     00000000000000000000B00101010101
+     01010101B00000000000000000000000
+     000000000000000000B0010101010101
+     0101010101B000000000000000000000
+     0000000000000000B001010101010101
+     010101010101B0000000000000000000
+     00000000000000B00101010101010101
+     01010101010101B00000000000000000
+     000000000000B0010101010101010101
+     0101010101010101B000000000000000
+     0000000000B001010101010169010101
+     010169010101010101B0000000000000
+     00000000B00101010101010101010101
+     01010101010101010101B00000000000
+     000000B0010101690169010169016969
+     0101690169010101690101B000000000
+     0000B001010169016901690169016901
+     690169016901010169010101B0000000
+     00B00101010169016901690169016901
+     69016901016901690101010101B00000
+     B0010101010169016901690169016901
+     6901690101016901010101010101B000
+     00B00101010169016901690169016901
+     690169010169016901010101010101B0
+     0000B001010169016901690169016901
+     6901690169010101690101010101B000
+     000000B0010169016901690169016901
+     69016901690101016901010101B00000
+     00000000B00101010101010101010101
+     010101010101010101010101B0000000
+     0000000000B001010101010101010101
+     0101010101010101010101B000000000
+     000000000000B0010101E3E3E3E3E3E3
+     E3E3E3E3E3E3E3010101B00000000000
+     00000000000000B0010101E3E3E3E3E3
+     E3E3E3E3E3E3010101B0000000000000
+     0000000000000000B0010101E3E3E3E3
+     E3E3E3E3E3010101B000000000000000
+     000000000000000000B0010101E3E3E3
+     E3E3E3E3010101B00000000000000000
+     00000000000000000000B0010101E3E3
+     E3E3E3010101B0000000000000000000
+     0000000000000000000000B0010101E3
+     E3E3010101B000000000000000000000
+     000000000000000000000000B0010101
+     E3010101B00000000000000000000000
+     00000000000000000000000000B00101
+     010101B0000000000000000000000000
+     0000000000000000000000000000B001
+     0101B000000000000000000000000000
+     000000000000000000000000000000B0
+     01B00000000000000000000000000000
+     00000000000000000000000000000000
+     B0000000000000000000000000000000
+
+ Type icl8
+   ,129(32)
+     00000000FFFFFFFFFFFFFFFFFFFFFFFF
+     FFFFFFFFFFFFFF000000000000000000
+     00000000FF0000000000000000000000
+     000000000000FFFF0000000000000000
+     00000000FF0000FFFFFFFFFFFFFFFFFF
+     FFFFFFFF0000FF00FF00000000000000
+     00000000FF00FF010101010101010101
+     01010101FF00FF0000FF000000000000
+     00000000FF00FF0101FFFFFFFFFFFFFF
+     FFFF0101FF00FF000000FF0000000000
+     00000000FF00FF01FF00000000000000
+     0000FF01FF00FF00000000FF00000000
+     00000000FF00FF01FF00FF00FF00FF00
+     FF00FF01FF00FFFFFFFFFFFFFF000000
+     00000000FF00FF01FF00000000000000
+     0000FF01FF00000000000000FF000000
+     00000000FF00FF01FF00FF00FF000000
+     0000FF01FF00000000000000FF000000
+     00000000FF00FF01FF00000000000000
+     0000FF01FF00000000000000FF000000
+     00000000FF00FF01FF00FF00FF00FF00
+     0000FF01FF00000000000000FF000000
+     00000000FF00FF01FF00000000000000
+     0000FF01FF00000000000000FF000000
+     00000000FF00FF0101FFFFFFFFFFFFFF
+     FFFF0101FF00000000000000FF000000
+     00000000FF00FF010101010101010101
+     01010101FF00000000000000FF000000
+     00000000FF00FF010101010101010101
+     01010101FF00000000000000FF000000
+     00000000FF00FF0101010101010101FF
+     FFFFFF01FF00000000000000FF000000
+     00000000FF00FF010101010101010101
+     01010101FF00000000000000FF000000
+     00000000FF00FF010101010101010101
+     01010101FF00000000000000FF000000
+     00000000FF00FF010101010101010101
+     01010101FF00000000000000FF000000
+     00000000FF0000FFFFFFFFFFFFFFFFFF
+     FFFFFFFF0000000000000000FF000000
+     00000000FF0000FF0101010101010101
+     010101FF0000000000000000FF000000
+     00000000FF0000FFFFFFFFFFFFFFFFFF
+     FFFFFFFF0000000000000000FF000000
+     00000000FF0000000000000000000000
+     000000000000000000000000FF000000
+     00000000FF0000000000000000000000
+     690000000000690000000000FF000000
+     00000000FF0000000000000000000000
+     000000000000000000000000FF000000
+     00000000FF009F9F9F00006900690000
+     690000690000690069006900FF000000
+     00000000FF0000000000690069006900
+     690069006900690069006900FF000000
+     00000000FF009F9F9F00690069006900
+     690069006900690000690000FF000000
+     00000000FF0000000000690069006900
+     690069006900690069006900FF000000
+     00000000FF009F9F9F00690069006900
+     690069006900690069006900FF000000
+     00000000FF0000000000000000000000
+     000000000000000000000000FF000000
+     00000000FFFFFFFFFFFFFFFFFFFFFFFF
+     FFFFFFFFFFFFFFFFFFFFFFFFFF000000
+
+ Type icl8
+   ,130(32)
+     00000000FFFFFFFFFFFFFFFFFFFFFFFF
+     FFFFFFFFFFFFFF000000000000000000
+     00000000FF0101010101010101010101
+     010101010101FFFF0000000000000000
+     00000000FF0101010101010101ECECEC
+     010101010101FF00FF00000000000000
+     00000000FF0101010101010101EC00EC
+     010101010101FF0000FF000000000000
+     00000000FF0101010101010101ECECEC
+     010101010101FF000000FF0000000000
+     00000000FF01010101010101FF010101
+     FF0101010101FF00000000FF00000000
+     00000000FF010101010101FF01010101
+     01FF01010101FFFFFFFFFFFFFF000000
+     00000000FF0101010101FF0101010101
+     0101ECECEC01010101010101FF000000
+     00000000FF0101ECECEC010101010101
+     0101EC00EC01010101010101FF000000
+     00000000FF0101EC00EC010101010101
+     0101ECECEC01010101010101FF000000
+     00000000FF0101ECECEC010101010101
+     010101FF01FF010101010101FF000000
+     00000000FF010101FF01FF0101010101
+     010101FF0101FF0101010101FF000000
+     00000000FF010101FF0101FF01010101
+     010101FF010101FF01010101FF000000
+     00000000FF010101FF010101FF010101
+     010101FF01010101ECECEC01FF000000
+     00000000FF0101ECECEC010101ECECEC
+     0101ECECEC010101EC00EC01FF000000
+     00000000FF0101EC00EC010101EC00EC
+     0101EC00EC010101ECECEC01FF000000
+     00000000FF0101ECECEC010101ECECEC
+     0101ECECEC01010101010101FF000000
+     00000000FF010101FF01010101010101
+     01FF010101FF010101010101FF000000
+     00000000FF010101FF01010101010101
+     FF0101010101FF0101010101FF000000
+     00000000FF010101FF010101010101FF
+     01010101010101FF01010101FF000000
+     00000000FF0101ECECEC0101ECECEC01
+     0101010101010101ECECEC01FF000000
+     00000000FF0101EC00EC0101EC00EC01
+     0101010101010101EC00EC01FF000000
+     00000000FF0101ECECEC0101ECECEC01
+     0101010101010101ECECEC01FF000000
+     00000000FF0101010101010101010101
+     690101010101690101010101FF000000
+     00000000FF0101010101010101010101
+     010101010101010101010101FF000000
+     00000000FF01E3E3E301016901690101
+     690101690101690169016901FF000000
+     00000000FF0101010101690169016901
+     690169016901690169016901FF000000
+     00000000FF01E3E3E301690169016901
+     690169016901690101690101FF000000
+     00000000FF0101010101690169016901
+     690169016901690169016901FF000000
+     00000000FF01E3E3E301690169016901
+     690169016901690169016901FF000000
+     00000000FF0101010101010101010101
+     010101010101010101010101FF000000
+     00000000FFFFFFFFFFFFFFFFFFFFFFFF
+     FFFFFFFFFFFFFFFFFFFFFFFFFF000000
+
+ Type icl4
+   ,128(32)
+     00000000000000050000000000000000
+     00000000000000515000000000000000
+     00000000000005101500000000000000
+     00000000000051010150000000000000
+     00000000000510101015000000000000
+     00000000005101010101500000000000
+     00000000051010101010150000000000
+     00000000510101010101015000000000
+     00000005101010101010101500000000
+     00000051010101010101010150000000
+     00000510101030101030101015000000
+     00005101010101010101010101500000
+     00051013131030331030301030150000
+     00510131313131313131310131015000
+     05101030303030303030131310101500
+     51010131313131313131013101010150
+     05101030303030303030131310101015
+     00510131313131313131310131010150
+     00051030303030303030301030101500
+     00005101010101010101010101015000
+     00000510101010101010101010150000
+     00000051018888888888888101500000
+     00000005101888888888881015000000
+     00000000510188888888810150000000
+     00000000051018888888101500000000
+     00000000005101888881015000000000
+     00000000000510188810150000000000
+     00000000000051018101500000000000
+     00000000000005101015000000000000
+     00000000000000510150000000000000
+     00000000000000051500000000000000
+     00000000000000005000000000000000
+
+ Type icl4
+   ,129(32)
+     0000FFFFFFFFFFFFFFFFFFF000000000
+     0000F00000000000000000FF00000000
+     0000F00FFFFFFFFFFFFF00F0F0000000
+     0000F0F1010101010101F0F00F000000
+     0000F0F01FFFFFFFFF10F0F000F00000
+     0000F0F1F000000000F1F0F0000F0000
+     0000F0F0F0F0F0F0F0F0F0FFFFFFF000
+     0000F0F1F000000000F1F0000000F000
+     0000F0F0F0F0F00000F0F0000000F000
+     0000F0F1F000000000F1F0000000F000
+     0000F0F0F0F0F0F000F0F0000000F000
+     0000F0F1F000000000F1F0000000F000
+     0000F0F01FFFFFFFFF10F0000000F000
+     0000F0F1010101010101F0000000F000
+     0000F0F0101010101010F0000000F000
+     0000F0F10101010FFFF1F0000000F000
+     0000F0F0101010101010F0000000F000
+     0000F0F1010101010101F0000000F000
+     0000F0F0101010101010F0000000F000
+     0000F00FFFFFFFFFFFFF00000000F000
+     0000F00F10101010101F00000000F000
+     0000F00FFFFFFFFFFFFF00000000F000
+     0000F00000000000000000000000F000
+     0000F00000000000300000300000F000
+     0000F00000000000000000000000F000
+     0000F08880030300300300303030F000
+     0000F00000303030303030303030F000
+     0000F08880303030303030300300F000
+     0000F00000303030303030303030F000
+     0000F08880303030303030303030F000
+     0000F00000000000000000000000F000
+     0000FFFFFFFFFFFFFFFFFFFFFFFFF000
+
+ Type icl4
+   ,130(32)
+     0000FFFFFFFFFFFFFFFFFFF000000000
+     0000F10101010101010101FF00000000
+     0000F01010101666101010F0F0000000
+     0000F10101010606010101F00F000000
+     0000F01010101666101010F000F00000
+     0000F1010101F101F10101F0000F0000
+     0000F010101F10101F1010FFFFFFF000
+     0000F10101F10101016661010101F000
+     0000F01666101010106060101010F000
+     0000F10606010101016661010101F000
+     0000F01666101010101F1F101010F000
+     0000F101F1F10101010F01F10101F000
+     0000F010F01F1010101F101F1010F000
+     0000F101F101F101010F01016661F000
+     0000F01666101666106660106060F000
+     0000F10606010606016061016661F000
+     0000F01666101666106660101010F000
+     0000F101F10101010F010F010101F000
+     0000F010F0101010F01010F01010F000
+     0000F101F101010F0101010F0101F000
+     0000F01666106660101010106660F000
+     0000F10606016061010101016061F000
+     0000F01666106660101010106660F000
+     0000F10101010101310101310101F000
+     0000F01010101010101010101010F000
+     0000F18881030301310301313131F000
+     0000F01010303030303030303030F000
+     0000F18881313131313131310301F000
+     0000F01010303030303030303030F000
+     0000F18881313131313131313131F000
+     0000F01010101010101010101010F000
+     0000FFFFFFFFFFFFFFFFFFFFFFFFF000
+
+ Type ics#
+   ,128(32)
+     FFFF800180018211000052D5AAB2AAB2
+     AAB50000AAA99555AAA995558001FFFF
+     FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+     FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+
+ Type ics#
+   ,129(32)
+     7FF040184014401E4002580A41425AAA
+     42AA580240824C2A4A924AAA40027FFE
+     7FF07FF87FFC7FFE7FFE7FFE7FFE7FFE
+     7FFE7FFE7FFE7FFE7FFE7FFE7FFE7FFE
+
+ Type ics#
+   ,130(32)
+     3FF020182194219E22422C322C322A22
+     29222DB22DB22002252A2A922AAA3FFE
+     3FF03FF83FFC3FFE3FFE3FFE3FFE3FFE
+     3FFE3FFE3FFE3FFE3FFE3FFE3FFE3FFE
+
+ Type ics8
+   ,128(32)
+     B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0
+     B00101010101010101010101010101B0
+     B00101010101010101010101010101B0
+     B00101010101690101010169010101B0
+     01010101010101010101010101010101
+     01690169010169016969016901690169
+     69016901690169016901696901016901
+     69016901690169016901696901016901
+     69016901690169016901696901690169
+     01010101010101010101010101010101
+     B001E3E3E3E3E3E3E3E3E3E3E3E301B0
+     B001E3E3E3E3E3E3E3E3E3E3E3E301B0
+     B001E3E3E3E3E3E3E3E3E3E3E3E301B0
+     B001E3E3E3E3E3E3E3E3E3E3E3E301B0
+     B00101010101010101010101010101B0
+     B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0
+
+ Type ics8
+   ,129(32)
+     00FFFFFFFFFFFFFFFFFFFFFF00000000
+     00FF000000000000000000FFFF000000
+     00FF000000000000000000FF00FF0000
+     00FF000000000000000000FFFFFFFF00
+     00FF000000000000000000000000FF00
+     00FF00E3E3000000000000006900FF00
+     00FF000000000069006900000000FF00
+     00FF00E3E3006900690069006900FF00
+     00FF000000006900690069006900FF00
+     00FF00E3E3000000000000000000FF00
+     00FF000000000000690000000000FF00
+     00FF000069690000000069006900FF00
+     00FF000069006900690000690000FF00
+     00FF000069006900690069006900FF00
+     00FF000000000000000000000000FF00
+     00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
+
+ Type ics8
+   ,130(32)
+     0000FFFFFFFFFFFFFFFFFFFF00000000
+     0000FF0101010101010101FFFF000000
+     0000FF01010101ECEC0101FF01FF0000
+     0000FF01010101ECEC0101FFFFFFFF00
+     0000FF010101FF0101FF01010101FF00
+     0000FF01ECEC01010101ECEC0101FF00
+     0000FF01ECEC01010101ECEC0101FF00
+     0000FF01FF01FF010101FF010101FF00
+     0000FF01FF0101FF0101FF010101FF00
+     0000FF01ECEC01ECEC01ECEC0101FF00
+     0000FF01ECEC01ECEC01ECEC0101FF00
+     0000FF0101010101010101010101FF00
+     0000FF0101690169010169016901FF00
+     0000FF0169016901690101690101FF00
+     0000FF0169016901690169016901FF00
+     0000FFFFFFFFFFFFFFFFFFFFFFFFFF00
+
+ Type ics4
+   ,128(32)
+     55555555555555555101010101010105
+     50101010101010155101013101030105
+     10101010101010100303013133030303
+     30303030303310303131313131330131
+     30303030303313130101010101010101
+     50888888888888155188888888888805
+     50888888888888155188888888888805
+     50101010101010155555555555555555
+
+ Type ics4
+   ,129(32)
+     0FFFFFFFFFFF00000F000000000FF000
+     0F000000000F0F000F000000000FFFF0
+     0F000000000000F00F088000000030F0
+     0F000003030000F00F088030303030F0
+     0F000030303030F00F088000000000F0
+     0F000000300000F00F003300003030F0
+     0F003030300300F00F003030303030F0
+     0F000000000000F00FFFFFFFFFFFFFF0
+
+ Type ics4
+   ,130(32)
+     00FFFFFFFFFF000000F10101010FF000
+     00F01016601F1F0000F10106610FFFF0
+     00F010F01F1010F000F16601016601F0
+     00F06610106610F000F1F1F101F101F0
+     00F0F01F10F010F000F16606616601F0
+     00F06616606610F000F10101010101F0
+     00F01313103030F000F13131310301F0
+     00F03030303030F000FFFFFFFFFFFFF0
+
+ *
  * Default config
  *
  Type CONF


*** commands/mac/rmaker/hexa.c~	Sat Nov 22 12:50:38 1997
--- commands/mac/rmaker/hexa.c	Sat Nov 22 13:00:57 1997
***************
*** 1,3 ****
--- 1,4 ----
+ #include 
  #include "res.h"

  /*
***************
*** 19,25 ****
  	hex[2] = 0;
  	while ((lp = getline()) != 0) {
  		for (len = strlen(lp) ; len > 0 ; ) {
! 			if (*lp == ' ') {
  				lp++;  len--;
  				continue;
  			}
--- 20,26 ----
  	hex[2] = 0;
  	while ((lp = getline()) != 0) {
  		for (len = strlen(lp) ; len > 0 ; ) {
! 			if (isspace(*lp)) {
  				lp++;  len--;
  				continue;
  			}
*** commands/mac/rmaker/misc.c~	Sat Nov 22 12:54:20 1997
--- commands/mac/rmaker/misc.c	Sat Nov 22 13:01:49 1997
***************
*** 1,4 ****
--- 1,5 ----
  #include 
+ #include 

  static char	line[256];		/* line buffer */
  static int	linenum;		/* line number in command file */
***************
*** 74,80 ****
  {
  	if (lp == 0)
  	  return 0;
! 	while (*lp == ' ' && *lp != 0)
    		lp++;
          if (*lp)
  	  return lp;
--- 75,81 ----
  {
  	if (lp == 0)
  	  return 0;
! 	while (isspace(*lp) && *lp != 0)
    		lp++;
          if (*lp)
  	  return lp;
*** commands/mac/rmaker/parse.c~	Sat Nov 22 08:19:05 1997
--- commands/mac/rmaker/parse.c	Sat Nov 22 08:20:52 1997
***************
*** 38,43 ****
--- 38,48 ----
  	"CONF", conf, 0,
  	"CODE",	0L,   R_AOUT | R_BSS,
  	"BOOT",	0L,   R_AOUT | R_NOSG,
+ 	"icl4", hexa, 0,
+ 	"icl8", hexa, 0,
+ 	"ics#", hexa, 0,
+ 	"ics4", hexa, 0,
+ 	"ics8", hexa, 0,
  	0L,	0L,   0
  };

-------- cut here --------

metrodate.com