home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From @MCC.COM:werner%sw.MCC.COM@MCC.COM Thu May 25 04:53:51 1989"
| default
| |
99%
| file
| C source, ASCII text, with CR line terminators
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| x-fmt/111 Plain Text File
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
| |
100%
| xdgMime
| application/mbox
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [????] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 40 4d 43 | 43 2e 43 4f 4d 3a 77 65 |From @MC|C.COM:we|
|00000010| 72 6e 65 72 25 73 77 2e | 4d 43 43 2e 43 4f 4d 40 |rner%sw.|MCC.COM@|
|00000020| 4d 43 43 2e 43 4f 4d 20 | 54 68 75 20 4d 61 79 20 |MCC.COM |Thu May |
|00000030| 32 35 20 30 34 3a 35 33 | 3a 35 31 20 31 39 38 39 |25 04:53|:51 1989|
|00000040| 0d 46 6c 61 67 73 3a 20 | 30 30 30 30 30 30 30 30 |.Flags: |00000000|
|00000050| 30 32 30 31 0d 46 72 6f | 6d 3a 20 6b 73 69 74 7a |0201.Fro|m: ksitz|
|00000060| 65 40 6e 6d 73 75 2e 65 | 64 75 20 28 4b 65 76 69 |e@nmsu.e|du (Kevi|
|00000070| 6e 20 53 69 74 7a 65 29 | 20 0d 4e 65 77 73 67 72 |n Sitze)| .Newsgr|
|00000080| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 73 79 73 2e 6d |oups: co|mp.sys.m|
|00000090| 61 63 2e 70 72 6f 67 72 | 61 6d 6d 65 72 20 0d 53 |ac.progr|ammer .S|
|000000a0| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 49 4e 49 54 |ubject: |Re: INIT|
|000000b0| 20 49 63 6f 6e 73 3f 20 | 0d 4d 65 73 73 61 67 65 | Icons? |.Message|
|000000c0| 2d 49 44 3a 20 3c 4b 53 | 49 54 5a 45 2e 38 39 4d |-ID: <KS|ITZE.89M|
|000000d0| 61 79 32 34 31 33 32 39 | 34 37 40 70 69 63 75 72 |ay241329|47@picur|
|000000e0| 69 73 2e 6e 6d 73 75 2e | 65 64 75 3e 20 0d 44 61 |is.nmsu.|edu> .Da|
|000000f0| 74 65 3a 20 32 34 20 4d | 61 79 20 38 39 20 31 39 |te: 24 M|ay 89 19|
|00000100| 3a 32 39 3a 34 37 20 47 | 4d 54 20 0d 52 65 66 65 |:29:47 G|MT .Refe|
|00000110| 72 65 6e 63 65 73 3a 20 | 3c 31 30 34 37 30 30 30 |rences: |<1047000|
|00000120| 35 36 40 70 2e 63 73 2e | 75 69 75 63 2e 65 64 75 |56@p.cs.|uiuc.edu|
|00000130| 3e 20 0d 53 65 6e 64 65 | 72 3a 20 6e 65 77 73 40 |> .Sende|r: news@|
|00000140| 6e 6d 73 75 2e 65 64 75 | 20 0d 4f 72 67 61 6e 69 |nmsu.edu| .Organi|
|00000150| 7a 61 74 69 6f 6e 3a 20 | 4e 4d 53 55 20 43 6f 6d |zation: |NMSU Com|
|00000160| 70 75 74 65 72 20 53 63 | 69 65 6e 63 65 20 0d 0d |puter Sc|ience ..|
|00000170| 0d 20 20 54 68 65 72 65 | 20 61 72 65 20 6e 6f 20 |. There| are no |
|00000180| 72 65 66 65 72 65 6e 63 | 65 73 20 74 6f 20 64 69 |referenc|es to di|
|00000190| 73 70 6c 61 79 69 6e 67 | 20 69 63 6f 6e 73 20 6f |splaying| icons o|
|000001a0| 6e 74 6f 20 74 68 65 20 | 73 63 72 65 65 6e 20 64 |nto the |screen d|
|000001b0| 75 72 69 6e 67 0d 73 74 | 61 72 74 75 70 20 62 65 |uring.st|artup be|
|000001c0| 63 61 75 73 65 20 74 68 | 65 72 65 20 61 72 65 20 |cause th|ere are |
|000001d0| 6e 6f 6e 65 20 28 74 68 | 61 74 20 49 20 6b 6e 6f |none (th|at I kno|
|000001e0| 77 20 6f 66 29 2e 20 20 | 48 65 72 65 27 73 20 61 |w of). |Here's a|
|000001f0| 20 73 69 6d 70 6c 65 0d | 70 72 6f 67 72 61 6d 20 | simple.|program |
|00000200| 74 68 61 74 20 77 69 6c | 6c 20 64 72 61 77 20 69 |that wil|l draw i|
|00000210| 63 6f 6e 73 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |cons as |well as |
|00000220| 69 6e 73 74 61 6c 6c 20 | 63 6f 64 65 20 69 6e 74 |install |code int|
|00000230| 6f 20 74 68 65 20 73 79 | 73 74 65 6d 0d 68 65 61 |o the sy|stem.hea|
|00000240| 70 2e 20 20 4b 69 6e 64 | 20 6f 66 20 75 73 65 66 |p. Kind| of usef|
|00000250| 75 6c 20 62 75 74 20 76 | 65 72 79 20 6c 69 6d 69 |ul but v|ery limi|
|00000260| 74 65 64 2e 20 20 54 68 | 65 20 72 6f 75 74 69 6e |ted. Th|e routin|
|00000270| 65 20 69 74 20 75 73 65 | 73 0d 28 44 72 61 77 49 |e it use|s.(DrawI|
|00000280| 63 6f 6e 29 20 74 6f 20 | 64 72 61 77 20 74 68 65 |con) to |draw the|
|00000290| 20 69 63 6f 6e 73 20 77 | 69 6c 6c 20 64 6f 20 73 | icons w|ill do s|
|000002a0| 6f 6d 65 77 68 61 74 20 | 6d 6f 72 65 20 74 68 61 |omewhat |more tha|
|000002b0| 6e 20 77 68 61 74 20 74 | 68 65 0d 70 72 6f 67 72 |n what t|he.progr|
|000002c0| 61 6d 20 6d 61 6b 65 73 | 20 69 74 20 64 6f 2e 20 |am makes| it do. |
|000002d0| 20 54 68 65 20 70 72 6f | 67 72 61 6d 20 64 6f 65 | The pro|gram doe|
|000002e0| 73 20 6b 65 65 70 20 74 | 68 65 20 75 73 65 72 20 |s keep t|he user |
|000002f0| 69 6e 74 65 72 66 61 63 | 65 20 75 70 0d 74 68 72 |interfac|e up.thr|
|00000300| 6f 75 67 68 20 74 68 65 | 20 66 61 63 74 20 74 68 |ough the| fact th|
|00000310| 61 74 20 69 66 20 74 68 | 65 20 6d 6f 75 73 65 20 |at if th|e mouse |
|00000320| 62 75 74 74 6f 6e 20 6f | 72 20 74 68 65 20 73 68 |button o|r the sh|
|00000330| 69 66 74 20 6b 65 79 20 | 69 73 20 70 72 65 73 73 |ift key |is press|
|00000340| 65 64 2c 0d 74 68 65 6e | 20 74 68 65 20 63 6f 64 |ed,.then| the cod|
|00000350| 65 20 72 65 73 6f 75 72 | 63 65 28 73 29 20 77 6f |e resour|ce(s) wo|
|00000360| 6e 27 74 20 62 65 20 69 | 6e 73 74 61 6c 6c 65 64 |n't be i|nstalled|
|00000370| 2e 20 20 46 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |. For m|ore info|
|00000380| 72 6d 61 74 69 6f 6e 2c | 0d 72 65 61 64 20 74 68 |rmation,|.read th|
|00000390| 65 20 69 6e 66 6f 20 69 | 6e 20 74 68 65 20 63 6f |e info i|n the co|
|000003a0| 6d 6d 65 6e 74 73 2e 20 | 20 48 6f 70 65 20 74 68 |mments. | Hope th|
|000003b0| 69 73 20 68 65 6c 70 73 | 2e 0d 0d 2f 2a 09 09 49 |is helps|.../*..I|
|000003c0| 4e 49 54 20 49 6e 73 74 | 61 6c 6c 65 72 20 62 79 |NIT Inst|aller by|
|000003d0| 20 4b 65 76 69 6e 20 4c | 2e 20 53 69 74 7a 65 0d | Kevin L|. Sitze.|
|000003e0| 0d 54 68 69 73 20 49 4e | 49 54 20 72 65 73 6f 75 |.This IN|IT resou|
|000003f0| 72 63 65 20 63 68 65 63 | 6b 73 20 74 68 65 20 6d |rce chec|ks the m|
|00000400| 6f 75 73 65 20 62 75 74 | 74 6f 6e 20 61 6e 64 20 |ouse but|ton and |
|00000410| 74 68 65 20 73 68 69 66 | 74 20 6b 65 79 20 61 6e |the shif|t key an|
|00000420| 64 20 69 66 0d 65 69 74 | 68 65 72 20 69 73 20 64 |d if.eit|her is d|
|00000430| 6f 77 6e 20 74 68 65 6e | 20 27 49 43 4e 23 27 20 |own then| 'ICN#' |
|00000440| 72 65 73 6f 75 72 63 65 | 20 49 44 3d 31 32 37 20 |resource| ID=127 |
|00000450| 77 69 6c 6c 20 62 65 20 | 70 75 74 20 6f 6e 74 6f |will be |put onto|
|00000460| 20 74 68 65 20 73 63 72 | 65 65 6e 0d 61 6e 64 20 | the scr|een.and |
|00000470| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 65 78 69 74 |the prog|ram exit|
|00000480| 73 2e 20 20 4f 74 68 65 | 72 77 69 73 65 20 61 6c |s. Othe|rwise al|
|00000490| 6c 20 27 63 6f 64 65 27 | 20 72 65 73 6f 75 72 63 |l 'code'| resourc|
|000004a0| 65 73 20 69 6e 20 74 68 | 65 20 49 4e 49 54 20 66 |es in th|e INIT f|
|000004b0| 69 6c 65 0d 77 69 6c 6c | 20 62 65 20 63 6f 70 69 |ile.will| be copi|
|000004c0| 65 64 20 69 6e 74 6f 20 | 74 68 65 20 73 79 73 74 |ed into |the syst|
|000004d0| 65 6d 20 68 65 61 70 2e | 20 20 54 68 65 20 27 63 |em heap.| The 'c|
|000004e0| 6f 64 65 27 20 63 6f 70 | 79 20 69 73 20 70 75 74 |ode' cop|y is put|
|000004f0| 20 69 6e 74 6f 20 61 0d | 70 6f 69 6e 74 65 72 20 | into a.|pointer |
|00000500| 69 6e 20 74 68 65 20 73 | 79 73 74 65 6d 20 68 65 |in the s|ystem he|
|00000510| 61 70 20 61 6e 64 20 74 | 68 65 6e 20 77 68 61 74 |ap and t|hen what|
|00000520| 65 76 65 72 20 69 73 20 | 61 74 20 74 68 65 20 73 |ever is |at the s|
|00000530| 74 61 72 74 20 6f 66 20 | 74 68 65 20 63 6f 64 65 |tart of |the code|
|00000540| 0d 69 73 20 67 69 76 65 | 6e 20 63 6f 6e 74 72 6f |.is give|n contro|
|00000550| 6c 2e 20 20 54 68 65 20 | 63 75 72 72 65 6e 74 20 |l. The |current |
|00000560| 68 65 61 70 20 69 73 20 | 74 68 65 20 61 70 70 6c |heap is |the appl|
|00000570| 69 63 61 74 69 6f 6e 20 | 68 65 61 70 2e 20 20 54 |ication |heap. T|
|00000580| 68 65 20 27 49 43 4e 23 | 27 0d 72 65 73 6f 75 72 |he 'ICN#|'.resour|
|00000590| 63 65 20 77 69 74 68 20 | 74 68 65 20 73 61 6d 65 |ce with |the same|
|000005a0| 20 49 44 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 | ID numb|er of th|
|000005b0| 65 20 63 6f 64 65 20 77 | 69 6c 6c 20 74 68 65 6e |e code w|ill then|
|000005c0| 20 62 65 20 63 6f 70 69 | 65 64 20 6f 6e 74 6f 20 | be copi|ed onto |
|000005d0| 74 68 65 0d 73 63 72 65 | 65 6e 2e 20 20 49 66 20 |the.scre|en. If |
|000005e0| 61 6e 79 20 6f 66 20 74 | 68 65 20 61 62 6f 76 65 |any of t|he above|
|000005f0| 20 27 49 43 4e 23 27 20 | 72 65 73 6f 75 72 63 65 | 'ICN#' |resource|
|00000600| 73 20 61 72 65 20 6e 6f | 74 20 66 6f 75 6e 64 2c |s are no|t found,|
|00000610| 20 74 68 65 6e 20 6e 6f | 74 68 69 6e 67 0d 77 69 | then no|thing.wi|
|00000620| 6c 6c 20 62 65 20 64 72 | 61 77 6e 20 74 68 6f 75 |ll be dr|awn thou|
|00000630| 67 68 20 74 68 65 20 63 | 6f 64 65 20 77 69 6c 6c |gh the c|ode will|
|00000640| 20 73 74 69 6c 6c 20 62 | 65 20 61 6c 6c 6f 63 61 | still b|e alloca|
|00000650| 74 65 64 20 61 73 20 70 | 72 65 76 69 6f 75 73 6c |ted as p|reviousl|
|00000660| 79 0d 6d 65 6e 74 69 6f | 6e 65 64 2e 0d 2a 2f 0d |y.mentio|ned..*/.|
|00000670| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 61 73 6d 2e 68 |.#includ|e <asm.h|
|00000680| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 51 75 69 63 |>.#inclu|de <Quic|
|00000690| 6b 64 72 61 77 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |kdraw.h>|.#includ|
|000006a0| 65 20 3c 4d 65 6d 6f 72 | 79 4d 67 72 2e 68 3e 0d |e <Memor|yMgr.h>.|
|000006b0| 23 69 6e 63 6c 75 64 65 | 20 3c 45 76 65 6e 74 4d |#include| <EventM|
|000006c0| 67 72 2e 68 3e 0d 0d 23 | 64 65 66 69 6e 65 20 43 |gr.h>..#|define C|
|000006d0| 68 6b 28 78 29 20 28 28 | 78 29 20 3c 3c 20 31 20 |hk(x) ((|x) << 1 |
|000006e0| 5e 20 30 78 31 30 32 31 | 29 0d 23 64 65 66 69 6e |^ 0x1021|).#defin|
|000006f0| 65 20 4b 65 79 43 6f 64 | 65 28 78 2c 79 29 20 28 |e KeyCod|e(x,y) (|
|00000700| 42 69 74 54 73 74 28 26 | 28 78 29 2c 20 28 79 29 |BitTst(&|(x), (y)|
|00000710| 20 5e 20 30 78 30 37 29 | 29 0d 23 64 65 66 69 6e | ^ 0x07)|).#defin|
|00000720| 65 20 54 72 75 65 20 28 | 31 29 0d 23 64 65 66 69 |e True (|1).#defi|
|00000730| 6e 65 20 46 61 6c 73 65 | 20 28 30 29 0d 0d 65 78 |ne False| (0)..ex|
|00000740| 74 65 72 6e 20 69 6e 74 | 20 69 63 6e 56 65 72 74 |tern int| icnVert|
|00000750| 20 3a 20 30 78 39 32 38 | 3b 0d 65 78 74 65 72 6e | : 0x928|;.extern|
|00000760| 20 69 6e 74 20 69 63 6e | 56 43 68 6b 20 3a 20 30 | int icn|VChk : 0|
|00000770| 78 39 32 61 3b 0d 65 78 | 74 65 72 6e 20 69 6e 74 |x92a;.ex|tern int|
|00000780| 20 69 63 6e 48 6f 72 7a | 20 3a 20 30 78 39 32 63 | icnHorz| : 0x92c|
|00000790| 3b 0d 65 78 74 65 72 6e | 20 69 6e 74 20 69 63 6e |;.extern| int icn|
|000007a0| 48 43 68 6b 20 3a 20 30 | 78 39 32 65 3b 0d 47 72 |HChk : 0|x92e;.Gr|
|000007b0| 61 66 50 74 72 20 6d 79 | 50 6f 72 74 3b 0d 0d 6d |afPtr my|Port;..m|
|000007c0| 61 69 6e 28 29 0d 7b 0d | 20 20 20 20 4b 65 79 4d |ain().{.| KeyM|
|000007d0| 61 70 20 6d 79 4b 4d 61 | 70 3b 0d 20 20 20 20 52 |ap myKMa|p;. R|
|000007e0| 65 73 54 79 70 65 20 72 | 54 79 70 65 3b 0d 20 20 |esType r|Type;. |
|000007f0| 20 20 53 74 72 32 35 35 | 20 6e 61 6d 65 3b 0d 20 | Str255| name;. |
|00000800| 20 20 20 76 6f 69 64 20 | 28 2a 70 29 28 29 3b 0d | void |(*p)();.|
|00000810| 20 20 20 20 54 48 7a 20 | 6d 79 5a 6f 6e 65 3b 0d | THz |myZone;.|
|00000820| 20 20 20 20 69 6e 74 20 | 69 2c 20 69 64 3b 0d 20 | int |i, id;. |
|00000830| 20 20 20 48 61 6e 64 6c | 65 20 68 3b 0d 0d 20 20 | Handl|e h;.. |
|00000840| 20 20 6d 79 50 6f 72 74 | 20 3d 20 28 47 72 61 66 | myPort| = (Graf|
|00000850| 50 74 72 29 20 4e 65 77 | 50 74 72 28 73 69 7a 65 |Ptr) New|Ptr(size|
|00000860| 6f 66 28 47 72 61 66 50 | 6f 72 74 29 29 3b 0d 20 |of(GrafP|ort));. |
|00000870| 20 20 20 4f 70 65 6e 50 | 6f 72 74 28 6d 79 50 6f | OpenP|ort(myPo|
|00000880| 72 74 29 3b 0d 20 20 20 | 20 47 65 74 4b 65 79 73 |rt);. | GetKeys|
|00000890| 28 26 6d 79 4b 4d 61 70 | 29 3b 0d 20 20 20 20 69 |(&myKMap|);. i|
|000008a0| 66 20 28 21 42 75 74 74 | 6f 6e 28 29 20 26 26 20 |f (!Butt|on() && |
|000008b0| 21 4b 65 79 43 6f 64 65 | 28 6d 79 4b 4d 61 70 2c |!KeyCode|(myKMap,|
|000008c0| 20 35 36 29 29 0d 20 20 | 20 20 20 20 20 20 66 6f | 56)). | fo|
|000008d0| 72 20 28 69 20 3d 20 43 | 6f 75 6e 74 31 52 65 73 |r (i = C|ount1Res|
|000008e0| 6f 75 72 63 65 73 28 27 | 63 6f 64 65 27 29 3b 20 |ources('|code'); |
|000008f0| 69 20 3e 20 30 3b 20 2d | 2d 69 29 20 7b 0d 20 20 |i > 0; -|-i) {. |
|00000900| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 68 20 | | if (h |
|00000910| 3d 20 47 65 74 31 49 6e | 64 52 65 73 6f 75 72 63 |= Get1In|dResourc|
|00000920| 65 28 27 63 6f 64 65 27 | 2c 20 69 29 29 20 7b 0d |e('code'|, i)) {.|
|00000930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000940| 61 73 6d 20 7b 0d 20 20 | 20 20 20 20 20 20 20 20 |asm {. | |
|00000950| 20 20 6d 6f 76 65 2e 6c | 20 20 20 20 20 20 20 20 | move.l| |
|00000960| 68 2c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |h, | |
|00000970| 20 20 61 30 0d 20 20 20 | 20 20 20 20 20 20 20 20 | a0. | |
|00000980| 20 5f 47 65 74 48 61 6e | 64 6c 65 53 69 7a 65 0d | _GetHan|dleSize.|
|00000990| 20 20 20 20 20 20 20 20 | 20 20 20 20 6d 6f 76 65 | | move|
|000009a0| 2e 77 20 20 20 20 20 20 | 20 20 64 30 2c 20 20 20 |.w | d0, |
|000009b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 64 0d 20 | | id. |
|000009c0| 20 20 20 20 20 20 20 20 | 20 20 20 5f 4e 65 77 50 | | _NewP|
|000009d0| 74 72 20 20 20 20 20 20 | 20 53 59 53 0d 20 20 20 |tr | SYS. |
|000009e0| 20 20 20 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 | | move.l |
|000009f0| 20 20 20 20 20 20 20 61 | 30 2c 20 20 20 20 20 20 | a|0, |
|00000a00| 20 20 20 20 20 20 20 20 | 20 70 0d 20 20 20 20 20 | | p. |
|00000a10| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0d 20 20 20 | | }. |
|00000a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 42 6c 6f | | Blo|
|00000a30| 63 6b 4d 6f 76 65 28 2a | 68 2c 20 28 50 74 72 29 |ckMove(*|h, (Ptr)|
|00000a40| 20 70 2c 20 69 64 29 3b | 0d 20 20 20 20 20 20 20 | p, id);|. |
|00000a50| 20 20 20 20 20 20 20 20 | 20 47 65 74 52 65 73 49 | | GetResI|
|00000a60| 6e 66 6f 28 68 2c 20 26 | 69 64 2c 20 26 72 54 79 |nfo(h, &|id, &rTy|
|00000a70| 70 65 2c 20 6e 61 6d 65 | 29 3b 0d 20 20 20 20 20 |pe, name|);. |
|00000a80| 20 20 20 20 20 20 20 20 | 20 20 20 52 65 6c 65 61 | | Relea|
|00000a90| 73 65 52 65 73 6f 75 72 | 63 65 28 68 29 3b 0d 20 |seResour|ce(h);. |
|00000aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|00000ab0| 2a 70 29 28 29 3b 20 20 | 20 20 20 20 20 20 2f 2a |*p)(); | /*|
|00000ac0| 20 20 43 61 6c 6c 20 63 | 6f 64 65 20 66 6f 72 20 | Call c|ode for |
|00000ad0| 73 74 61 72 74 75 70 20 | 20 2a 2f 0d 20 20 20 20 |startup | */. |
|00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 44 72 61 77 | | Draw|
|00000af0| 49 63 6f 6e 28 69 64 2c | 20 54 72 75 65 29 3b 0d |Icon(id,| True);.|
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0d 20 20 | | }. |
|00000b10| 20 20 20 20 20 20 7d 0d | 20 20 20 20 65 6c 73 65 | }.| else|
|00000b20| 20 44 72 61 77 49 63 6f | 6e 28 31 32 37 2c 20 54 | DrawIco|n(127, T|
|00000b30| 72 75 65 29 3b 0d 20 20 | 20 20 43 6c 6f 73 65 50 |rue);. | CloseP|
|00000b40| 6f 72 74 28 6d 79 50 6f | 72 74 29 3b 0d 20 20 20 |ort(myPo|rt);. |
|00000b50| 20 44 69 73 70 6f 73 50 | 74 72 28 28 50 74 72 29 | DisposP|tr((Ptr)|
|00000b60| 20 6d 79 50 6f 72 74 29 | 3b 0d 7d 0d 0d 2f 2a 20 | myPort)|;.}../* |
|00000b70| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 73 20 70 | This ro|utines p|
|00000b80| 6c 6f 74 73 20 61 6e 20 | 69 63 6f 6e 20 6f 6e 74 |lots an |icon ont|
|00000b90| 6f 20 74 68 65 20 64 65 | 73 6b 74 6f 70 2e 20 20 |o the de|sktop. |
|00000ba0| 54 68 65 20 76 61 72 69 | 61 62 6c 65 20 27 69 63 |The vari|able 'ic|
|00000bb0| 6f 6e 27 09 2a 2f 0d 2f | 2a 20 20 68 6f 6c 64 73 |on'.*/./|* holds|
|00000bc0| 20 61 6e 20 49 44 20 6e | 75 6d 62 65 72 20 6f 66 | an ID n|umber of|
|00000bd0| 20 74 68 65 20 49 43 4e | 23 20 72 65 73 6f 75 72 | the ICN|# resour|
|00000be0| 63 65 20 74 6f 20 62 65 | 20 70 6c 6f 74 74 65 64 |ce to be| plotted|
|00000bf0| 20 74 6f 20 74 68 65 20 | 73 63 72 65 65 6e 09 2a | to the |screen.*|
|00000c00| 2f 0d 2f 2a 20 20 61 6e | 64 20 64 6f 49 6e 63 20 |/./* an|d doInc |
|00000c10| 69 73 20 61 20 66 6c 61 | 67 20 74 68 61 74 20 77 |is a fla|g that w|
|00000c20| 69 6c 6c 20 6d 61 6b 65 | 20 74 68 65 20 6e 65 78 |ill make| the nex|
|00000c30| 74 20 69 63 6f 6e 20 74 | 6f 20 62 65 20 70 6c 6f |t icon t|o be plo|
|00000c40| 74 74 65 64 2c 09 2a 2f | 0d 2f 2a 20 20 70 6c 6f |tted,.*/|./* plo|
|00000c50| 74 74 65 64 20 65 69 74 | 68 65 72 20 6f 6e 20 74 |tted eit|her on t|
|00000c60| 6f 70 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 69 |op of th|e last i|
|00000c70| 63 6f 6e 20 6f 72 20 6e | 65 78 74 20 74 6f 20 74 |con or n|ext to t|
|00000c80| 68 65 20 6c 61 73 74 20 | 69 63 6f 6e 2e 09 2a 2f |he last |icon..*/|
|00000c90| 0d 2f 2a 20 20 54 68 69 | 73 20 61 6c 6c 6f 77 73 |./* Thi|s allows|
|00000ca0| 20 66 6f 72 20 27 61 6e | 69 6d 61 74 69 6f 6e 20 | for 'an|imation |
|00000cb0| 73 65 71 75 65 6e 63 65 | 73 27 20 69 66 20 77 61 |sequence|s' if wa|
|00000cc0| 6e 74 65 64 2e 20 20 4f | 74 68 65 72 20 66 65 61 |nted. O|ther fea|
|00000cd0| 74 75 72 65 73 09 2a 2f | 0d 2f 2a 20 20 61 72 65 |tures.*/|./* are|
|00000ce0| 3a 20 27 61 75 74 6f 77 | 72 61 70 27 20 6f 72 20 |: 'autow|rap' or |
|00000cf0| 77 72 61 70 70 69 6e 67 | 20 74 6f 20 74 68 65 20 |wrapping| to the |
|00000d00| 70 72 65 76 69 6f 75 73 | 20 6c 69 6e 65 20 77 68 |previous| line wh|
|00000d10| 65 6e 20 69 63 6f 6e 20 | 77 69 6c 6c 20 62 65 09 |en icon |will be.|
|00000d20| 2a 2f 0d 2f 2a 20 20 70 | 6c 6f 74 74 65 64 20 6f |*/./* p|lotted o|
|00000d30| 66 66 20 74 68 65 20 72 | 69 67 68 74 20 68 61 6e |ff the r|ight han|
|00000d40| 64 20 73 69 64 65 20 6f | 66 20 74 68 65 20 73 63 |d side o|f the sc|
|00000d50| 72 65 65 6e 2e 20 20 54 | 68 69 73 20 70 72 6f 63 |reen. T|his proc|
|00000d60| 65 64 75 72 65 09 2a 2f | 0d 2f 2a 20 20 73 68 6f |edure.*/|./* sho|
|00000d70| 75 6c 64 20 62 65 20 63 | 6f 6d 70 61 74 61 62 6c |uld be c|ompatabl|
|00000d80| 65 20 77 69 74 68 20 6d | 6f 73 74 20 70 72 65 76 |e with m|ost prev|
|00000d90| 69 6f 75 73 20 53 68 6f | 77 49 63 6f 6e 20 61 6c |ious Sho|wIcon al|
|00000da0| 67 6f 72 69 74 68 6d 73 | 2e 09 2a 2f 0d 0d 44 72 |gorithms|..*/..Dr|
|00000db0| 61 77 49 63 6f 6e 28 69 | 63 6f 6e 2c 20 64 6f 49 |awIcon(i|con, doI|
|00000dc0| 6e 63 29 0d 69 6e 74 20 | 69 63 6f 6e 2c 0d 20 20 |nc).int |icon,. |
|00000dd0| 20 20 64 6f 49 6e 63 3b | 0d 7b 0d 20 20 20 20 42 | doInc;|.{. B|
|00000de0| 69 74 4d 61 70 20 64 61 | 74 61 2c 20 6d 61 73 6b |itMap da|ta, mask|
|00000df0| 3b 0d 20 20 20 20 48 61 | 6e 64 6c 65 20 68 3b 0d |;. Ha|ndle h;.|
|00000e00| 20 20 20 20 52 65 63 74 | 20 64 73 74 3b 0d 0d 20 | Rect| dst;.. |
|00000e10| 20 20 20 69 66 20 28 68 | 20 3d 20 47 65 74 52 65 | if (h| = GetRe|
|00000e20| 73 6f 75 72 63 65 28 27 | 49 43 4e 23 27 2c 20 69 |source('|ICN#', i|
|00000e30| 63 6f 6e 29 29 20 7b 0d | 20 20 20 20 20 20 20 20 |con)) {.| |
|00000e40| 69 66 20 28 43 68 6b 28 | 69 63 6e 56 65 72 74 29 |if (Chk(|icnVert)|
|00000e50| 20 21 3d 20 69 63 6e 56 | 43 68 6b 29 0d 20 20 20 | != icnV|Chk). |
|00000e60| 20 20 20 20 20 20 20 20 | 20 69 63 6e 56 43 68 6b | | icnVChk|
|00000e70| 20 3d 20 43 68 6b 28 69 | 63 6e 56 65 72 74 20 3d | = Chk(i|cnVert =|
|00000e80| 20 6d 79 50 6f 72 74 2d | 3e 70 6f 72 74 42 69 74 | myPort-|>portBit|
|00000e90| 73 2e 62 6f 75 6e 64 73 | 2e 62 6f 74 74 6f 6d 20 |s.bounds|.bottom |
|00000ea0| 2d 20 34 30 29 3b 0d 20 | 20 20 20 20 20 20 20 69 |- 40);. | i|
|00000eb0| 66 20 28 43 68 6b 28 69 | 63 6e 48 6f 72 7a 29 20 |f (Chk(i|cnHorz) |
|00000ec0| 21 3d 20 69 63 6e 48 43 | 68 6b 29 0d 20 20 20 20 |!= icnHC|hk). |
|00000ed0| 20 20 20 20 20 20 20 20 | 69 63 6e 48 43 68 6b 20 | |icnHChk |
|00000ee0| 3d 20 43 68 6b 28 69 63 | 6e 48 6f 72 7a 20 3d 20 |= Chk(ic|nHorz = |
|00000ef0| 38 29 3b 0d 20 20 20 20 | 20 20 20 20 69 66 20 28 |8);. | if (|
|00000f00| 69 63 6e 48 6f 72 7a 20 | 3e 20 6d 79 50 6f 72 74 |icnHorz |> myPort|
|00000f10| 2d 3e 70 6f 72 74 42 69 | 74 73 2e 62 6f 75 6e 64 |->portBi|ts.bound|
|00000f20| 73 2e 72 69 67 68 74 20 | 2d 20 33 32 29 20 7b 0d |s.right |- 32) {.|
|00000f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 63 6e 48 | | icnH|
|00000f40| 43 68 6b 20 3d 20 43 68 | 6b 28 69 63 6e 48 6f 72 |Chk = Ch|k(icnHor|
|00000f50| 7a 20 3d 20 38 29 3b 0d | 20 20 20 20 20 20 20 20 |z = 8);.| |
|00000f60| 20 20 20 20 69 63 6e 56 | 43 68 6b 20 3d 20 43 68 | icnV|Chk = Ch|
|00000f70| 6b 28 69 63 6e 56 65 72 | 74 20 2d 3d 20 34 30 29 |k(icnVer|t -= 40)|
|00000f80| 3b 0d 20 20 20 20 20 20 | 20 20 7d 0d 20 20 20 20 |;. | }. |
|00000f90| 20 20 20 20 48 4c 6f 63 | 6b 28 68 29 3b 0d 20 20 | HLoc|k(h);. |
|00000fa0| 20 20 20 20 20 20 64 61 | 74 61 2e 62 61 73 65 41 | da|ta.baseA|
|00000fb0| 64 64 72 20 3d 20 2a 68 | 3b 0d 20 20 20 20 20 20 |ddr = *h|;. |
|00000fc0| 20 20 6d 61 73 6b 2e 62 | 61 73 65 41 64 64 72 20 | mask.b|aseAddr |
|00000fd0| 3d 20 2a 68 20 2b 20 30 | 78 38 30 3b 0d 20 20 20 |= *h + 0|x80;. |
|00000fe0| 20 20 20 20 20 64 61 74 | 61 2e 72 6f 77 42 79 74 | dat|a.rowByt|
|00000ff0| 65 73 20 3d 20 34 3b 0d | 20 20 20 20 20 20 20 20 |es = 4;.| |
|00001000| 6d 61 73 6b 2e 72 6f 77 | 42 79 74 65 73 20 3d 20 |mask.row|Bytes = |
|00001010| 34 3b 0d 20 20 20 20 20 | 20 20 20 53 65 74 52 65 |4;. | SetRe|
|00001020| 63 74 28 26 64 61 74 61 | 2e 62 6f 75 6e 64 73 2c |ct(&data|.bounds,|
|00001030| 20 30 2c 20 30 2c 20 33 | 32 2c 20 33 32 29 3b 0d | 0, 0, 3|2, 32);.|
|00001040| 20 20 20 20 20 20 20 20 | 53 65 74 52 65 63 74 28 | |SetRect(|
|00001050| 26 6d 61 73 6b 2e 62 6f | 75 6e 64 73 2c 20 30 2c |&mask.bo|unds, 0,|
|00001060| 20 30 2c 20 33 32 2c 20 | 33 32 29 3b 0d 20 20 20 | 0, 32, |32);. |
|00001070| 20 20 20 20 20 53 65 74 | 52 65 63 74 28 26 64 73 | Set|Rect(&ds|
|00001080| 74 2c 20 69 63 6e 48 6f | 72 7a 2c 20 69 63 6e 56 |t, icnHo|rz, icnV|
|00001090| 65 72 74 2c 20 69 63 6e | 48 6f 72 7a 20 2b 20 33 |ert, icn|Horz + 3|
|000010a0| 32 2c 20 69 63 6e 56 65 | 72 74 20 2b 20 33 32 29 |2, icnVe|rt + 32)|
|000010b0| 3b 0d 20 20 20 20 20 20 | 20 20 43 6f 70 79 4d 61 |;. | CopyMa|
|000010c0| 73 6b 28 26 64 61 74 61 | 2c 20 26 6d 61 73 6b 2c |sk(&data|, &mask,|
|000010d0| 20 26 6d 79 50 6f 72 74 | 2d 3e 70 6f 72 74 42 69 | &myPort|->portBi|
|000010e0| 74 73 2c 20 26 64 61 74 | 61 2e 62 6f 75 6e 64 73 |ts, &dat|a.bounds|
|000010f0| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00001100| 20 20 20 26 6d 61 73 6b | 2e 62 6f 75 6e 64 73 2c | &mask|.bounds,|
|00001110| 20 26 64 73 74 29 3b 0d | 20 20 20 20 20 20 20 20 | &dst);.| |
|00001120| 52 65 6c 65 61 73 65 52 | 65 73 6f 75 72 63 65 28 |ReleaseR|esource(|
|00001130| 68 29 3b 0d 20 20 20 20 | 20 20 20 20 69 66 20 28 |h);. | if (|
|00001140| 64 6f 49 6e 63 29 20 69 | 63 6e 48 43 68 6b 20 3d |doInc) i|cnHChk =|
|00001150| 20 43 68 6b 28 69 63 6e | 48 6f 72 7a 20 2b 3d 20 | Chk(icn|Horz += |
|00001160| 34 30 29 3b 0d 20 20 20 | 20 7d 0d 7d 0d 2d 2d 0d |40);. | }.}.--.|
|00001170| 0d 2b 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.+------|--------|
|00001180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011b0| 2d 2d 2d 2d 2d 2d 2b 0d | 7c 20 46 72 6f 6d 20 74 |------+.|| From t|
|000011c0| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 6f 66 3a |he Macin|tosh of:|
|000011d0| 20 4b 65 76 69 6e 20 4c | 2e 20 53 69 74 7a 65 2e | Kevin L|. Sitze.|
|000011e0| 20 54 68 69 73 20 69 73 | 20 4d 45 3a 20 6b 73 69 | This is| ME: ksi|
|000011f0| 74 7a 65 40 4e 4d 53 55 | 2e 65 64 75 20 7c 0d 2b |tze@NMSU|.edu |.+|
|00001200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001230| 2d 2d 2d 2d 2d 2d 2b 2d | 2d 2d 2d 2d 2d 2d 2d 2d |------+-|--------|
|00001240| 2d 2d 2d 2d 2b 0d 7c 20 | 54 68 65 20 64 69 66 66 |----+.| |The diff|
|00001250| 65 72 65 6e 63 65 20 62 | 65 74 77 65 65 6e 20 69 |erence b|etween i|
|00001260| 6e 74 65 6c 6c 69 67 65 | 6e 63 65 20 61 6e 64 20 |ntellige|nce and |
|00001270| 73 74 75 70 69 64 69 74 | 79 20 69 73 20 7c 20 20 |stupidit|y is | |
|00001280| 20 49 73 20 74 68 69 73 | 20 20 20 7c 0d 7c 20 74 | Is this| |.| t|
|00001290| 68 61 74 20 69 6e 74 65 | 6c 6c 69 67 65 6e 63 65 |hat inte|lligence|
|000012a0| 20 68 61 73 20 61 20 6c | 69 6d 69 74 2e 20 20 20 | has a l|imit. |
|000012b0| 20 20 20 20 20 20 20 2d | 2d 20 61 6e 6f 6e 79 6d | -|- anonym|
|000012c0| 6f 75 73 20 7c 20 20 20 | 62 65 74 74 65 72 3f 20 |ous | |better? |
|000012d0| 20 20 7c 0d 2b 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | |.+---|--------|
|000012e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000012f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001300| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2b 2d 2d 2d 2d |--------|---+----|
|00001310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2b 0d 0d 0d 0d 0d |--------|-+..... |
+--------+-------------------------+-------------------------+--------+--------+