home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-14 | 4.6 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| AMOS Picture Packer (image/amosPicturePacker)
| ext
| Supported |
1%
| dexvert
| Debian floppy split (archive/debianFloppySplit)
| ext
| Unsupported |
1%
| dexvert
| Sound Images sound sample (audio/soundImagesSoundSample)
| ext
| Unsupported |
1%
| dexvert
| DESI-III drawing (image/desiIIIDrawing)
| ext
| Unsupported |
1%
| dexvert
| MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable)
| ext
| Unsupported |
1%
| dexvert
| Alien Trilogytextures (other/alienTrilogyTextures)
| ext
| Unsupported |
1%
| dexvert
| APT cache data (other/aptCacheData)
| ext
| Unsupported |
1%
| dexvert
| CorelTRACE configuration (other/corelTRACEConfiguration)
| ext
| Unsupported |
1%
| dexvert
| Dreamcast Disc (other/dreamcastDisc)
| ext
| Unsupported |
1%
| dexvert
| EST flat binary (other/estFlatBinary)
| ext
| Unsupported |
1%
| dexvert
| Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat)
| ext
| Unsupported |
1%
| dexvert
| Sega Genesis/Megadrive/32x ROM (other/genesisROM)
| ext
| Unsupported |
1%
| dexvert
| Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive)
| ext
| Unsupported |
1%
| dexvert
| Sound Images Sound Driver (other/soundImagesSoundDriver)
| ext
| Unsupported |
1%
| dexvert
| Symantec/Norton Config (other/symantecNortonConfig)
| ext
| Unsupported |
1%
| dexvert
| Vectrex ROM (other/vectrexROM)
| ext
| Unsupported |
1%
| dexvert
| BIS raP encoded format (other/bisraPEncoded)
| ext
| Unsupported |
1%
| dexvert
| Pascal Script binary (other/pascalScriptBinary)
| ext
| Unsupported |
1%
| dexvert
| 7th Level game data archive (other/seventhLevelGameDataArchive)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Binary Text (image/binaryText)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Fri Jun 13 22:27:33 1986, modified Sun Jan 29 08:21:18 1989, creator Think C, type ASCII, 4581 bytes "MSkelZoom.c"
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 1
| default (weak)
| |
100%
| lsar
| MacBinary
| default
| |
100%
| gt2
| MAC Bilddatei
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4d 53 6b 65 6c 5a | 6f 6f 6d 2e 63 00 00 00 |..MSkelZ|oom.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 11 e5 00 | 00 00 00 9b 16 87 15 a0 |........|........|
|00000060| 08 c0 4e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..N.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 09 54 72 61 6e | 73 53 6b 65 6c 20 6d 75 |/*..Tran|sSkel mu|
|00000090| 6c 74 69 70 6c 65 2d 77 | 69 6e 64 6f 77 20 64 65 |ltiple-w|indow de|
|000000a0| 6d 6f 6e 73 74 72 61 74 | 69 6f 6e 3a 20 5a 6f 6f |monstrat|ion: Zoo|
|000000b0| 6d 52 65 63 74 20 6d 6f | 64 75 6c 65 0d 0d 09 54 |mRect mo|dule...T|
|000000c0| 68 69 73 20 6d 6f 64 75 | 6c 65 20 68 61 6e 64 6c |his modu|le handl|
|000000d0| 65 73 20 61 20 77 69 6e | 64 6f 77 20 69 6e 20 77 |es a win|dow in w|
|000000e0| 68 69 63 68 20 73 75 63 | 63 65 73 73 69 76 65 20 |hich suc|cessive |
|000000f0| 72 61 6e 64 6f 6d 6c 79 | 20 67 65 6e 65 72 61 74 |randomly| generat|
|00000100| 65 64 0d 09 72 65 63 74 | 61 6e 67 6c 65 73 20 61 |ed..rect|angles a|
|00000110| 72 65 20 73 6d 6f 6f 74 | 68 6c 79 20 69 6e 74 65 |re smoot|hly inte|
|00000120| 72 70 6f 6c 61 74 65 64 | 20 69 6e 74 6f 20 6f 6e |rpolated| into on|
|00000130| 65 20 61 6e 6f 74 68 65 | 72 2e 20 20 54 68 65 20 |e anothe|r. The |
|00000140| 64 69 73 70 6c 61 79 0d | 09 69 73 20 77 68 69 74 |display.|.is whit|
|00000150| 65 20 6f 6e 20 62 6c 61 | 63 6b 2c 20 77 68 69 63 |e on bla|ck, whic|
|00000160| 68 20 72 65 73 75 6c 74 | 73 20 69 6e 20 73 6f 6d |h result|s in som|
|00000170| 65 20 69 6e 74 65 72 65 | 73 74 69 6e 67 20 70 72 |e intere|sting pr|
|00000180| 6f 62 6c 65 6d 73 20 28 | 73 65 65 0d 09 5a 44 72 |oblems (|see..ZDr|
|00000190| 61 77 47 72 6f 77 42 6f | 78 2c 20 66 6f 72 20 69 |awGrowBo|x, for i|
|000001a0| 6e 73 74 61 6e 63 65 29 | 2e 20 20 54 68 65 20 64 |nstance)|. The d|
|000001b0| 69 73 70 6c 61 79 20 61 | 64 6a 75 73 74 73 20 69 |isplay a|djusts i|
|000001c0| 74 73 65 6c 66 20 74 6f | 20 74 68 65 20 73 69 7a |tself to| the siz|
|000001d0| 65 0d 09 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |e..of th|e window|
|000001e0| 2c 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 7a 6f |, so tha|t the zo|
|000001f0| 6f 6d 20 73 65 72 69 65 | 73 20 61 6c 77 61 79 73 |om serie|s always|
|00000200| 20 6c 69 65 20 65 6e 74 | 69 72 65 6c 79 20 77 69 | lie ent|irely wi|
|00000210| 74 68 69 6e 0d 09 74 68 | 65 20 77 69 6e 64 6f 77 |thin..th|e window|
|00000220| 2e 20 20 43 6c 69 63 6b | 69 6e 67 20 74 68 65 20 |. Click|ing the |
|00000230| 6d 6f 75 73 65 20 69 6e | 20 74 68 65 20 77 69 6e |mouse in| the win|
|00000240| 64 6f 77 20 70 61 75 73 | 65 73 20 74 68 65 20 64 |dow paus|es the d|
|00000250| 69 73 70 6c 61 79 20 75 | 6e 74 69 6c 0d 09 74 68 |isplay u|ntil..th|
|00000260| 65 20 62 75 74 74 6f 6e | 20 69 73 20 72 65 6c 65 |e button| is rele|
|00000270| 61 73 65 64 2e 0d 0d 09 | 32 31 20 41 70 72 69 6c |ased....|21 April|
|00000280| 20 31 39 38 38 09 09 50 | 61 75 6c 20 44 75 42 6f | 1988..P|aul DuBo|
|00000290| 69 73 0d 2a 2f 0d 0d 23 | 20 69 6e 63 6c 75 64 65 |is.*/..#| include|
|000002a0| 09 22 4d 75 6c 74 69 53 | 6b 65 6c 2e 68 22 0d 0d |."MultiS|kel.h"..|
|000002b0| 0d 23 20 64 65 66 69 6e | 65 09 7a 6f 6f 6d 53 74 |.# defin|e.zoomSt|
|000002c0| 65 70 73 09 31 35 09 09 | 2f 2a 20 23 20 72 65 63 |eps.15..|/* # rec|
|000002d0| 74 73 20 69 6e 20 69 6e | 74 65 72 70 6f 6c 61 74 |ts in in|terpolat|
|000002e0| 69 76 65 20 73 65 72 69 | 65 73 20 2a 2f 0d 0d 57 |ive seri|es */..W|
|000002f0| 69 6e 64 6f 77 50 74 72 | 09 09 7a 6f 6f 6d 57 69 |indowPtr|..zoomWi|
|00000300| 6e 64 3b 0d 73 74 61 74 | 69 63 20 52 65 63 74 09 |nd;.stat|ic Rect.|
|00000310| 09 7a 52 65 63 74 5b 7a | 6f 6f 6d 53 74 65 70 73 |.zRect[z|oomSteps|
|00000320| 5d 3b 09 2f 2a 20 73 65 | 74 20 6f 66 20 69 6e 74 |];./* se|t of int|
|00000330| 65 72 70 6f 6c 61 74 65 | 64 20 72 65 63 74 61 6e |erpolate|d rectan|
|00000340| 67 6c 65 73 20 2a 2f 0d | 73 74 61 74 69 63 20 52 |gles */.|static R|
|00000350| 65 63 74 09 09 7a 53 72 | 63 52 65 63 74 3b 0d 73 |ect..zSr|cRect;.s|
|00000360| 74 61 74 69 63 20 49 6e | 74 65 67 65 72 09 73 69 |tatic In|teger.si|
|00000370| 7a 65 58 3b 09 09 09 09 | 2f 2a 20 73 69 7a 65 20 |zeX;....|/* size |
|00000380| 6f 66 20 77 69 6e 64 6f | 77 20 69 6e 20 70 69 78 |of windo|w in pix|
|00000390| 65 6c 73 20 2a 2f 0d 73 | 74 61 74 69 63 20 49 6e |els */.s|tatic In|
|000003a0| 74 65 67 65 72 09 73 69 | 7a 65 59 3b 0d 0d 0d 53 |teger.si|zeY;...S|
|000003b0| 65 74 5a 6f 6f 6d 53 69 | 7a 65 20 28 29 0d 7b 0d |etZoomSi|ze ().{.|
|000003c0| 52 65 63 74 09 72 3b 0d | 0d 09 72 20 3d 20 7a 6f |Rect.r;.|..r = zo|
|000003d0| 6f 6d 57 69 6e 64 2d 3e | 70 6f 72 74 52 65 63 74 |omWind->|portRect|
|000003e0| 3b 0d 09 72 2e 72 69 67 | 68 74 20 2d 3d 20 31 35 |;..r.rig|ht -= 15|
|000003f0| 3b 09 09 09 09 2f 2a 20 | 64 6f 6e 27 74 20 75 73 |;..../* |don't us|
|00000400| 65 20 72 69 67 68 74 20 | 65 64 67 65 20 2a 2f 0d |e right |edge */.|
|00000410| 09 73 69 7a 65 58 20 3d | 20 72 2e 72 69 67 68 74 |.sizeX =| r.right|
|00000420| 3b 0d 09 73 69 7a 65 59 | 20 3d 20 72 2e 62 6f 74 |;..sizeY| = r.bot|
|00000430| 74 6f 6d 3b 0d 7d 0d 0d | 0d 2f 2a 0d 09 72 65 74 |tom;.}..|./*..ret|
|00000440| 75 72 6e 20 69 6e 74 65 | 67 65 72 20 62 65 74 77 |urn inte|ger betw|
|00000450| 65 65 6e 20 7a 65 72 6f | 20 61 6e 64 20 6d 61 78 |een zero| and max|
|00000460| 20 28 69 6e 63 6c 75 73 | 69 76 65 29 2e 20 20 61 | (inclus|ive). a|
|00000470| 73 73 75 6d 65 73 20 6d | 61 78 20 69 73 0d 09 6e |ssumes m|ax is..n|
|00000480| 6f 6e 2d 6e 65 67 61 74 | 69 76 65 2e 0d 2a 2f 0d |on-negat|ive..*/.|
|00000490| 0d 52 61 6e 64 20 28 6d | 61 78 29 0d 49 6e 74 65 |.Rand (m|ax).Inte|
|000004a0| 67 65 72 09 6d 61 78 3b | 0d 7b 0d 72 65 67 69 73 |ger.max;|.{.regis|
|000004b0| 74 65 72 20 49 6e 74 65 | 67 65 72 09 74 3b 0d 0d |ter Inte|ger.t;..|
|000004c0| 09 74 20 3d 20 52 61 6e | 64 6f 6d 20 28 29 3b 0d |.t = Ran|dom ();.|
|000004d0| 09 69 66 20 28 74 20 3c | 20 30 29 20 74 20 3d 20 |.if (t <| 0) t = |
|000004e0| 2d 74 3b 0d 09 72 65 74 | 75 72 6e 20 28 74 20 25 |-t;..ret|urn (t %|
|000004f0| 20 28 6d 61 78 20 2b 20 | 31 29 29 3b 0d 7d 3b 0d | (max + |1));.};.|
|00000500| 0d 0d 2f 2a 0d 09 49 6e | 74 65 72 70 6f 6c 61 74 |../*..In|terpolat|
|00000510| 65 20 6f 6e 65 20 72 65 | 63 74 61 6e 67 6c 65 20 |e one re|ctangle |
|00000520| 73 6d 6f 6f 74 68 6c 79 | 20 69 6e 74 6f 20 61 6e |smoothly| into an|
|00000530| 6f 74 68 65 72 2e 20 20 | 45 72 61 73 65 20 74 68 |other. |Erase th|
|00000540| 65 20 70 72 65 76 69 6f | 75 73 0d 09 73 65 72 69 |e previo|us..seri|
|00000550| 65 73 20 61 73 20 74 68 | 65 20 6e 65 77 20 6f 6e |es as th|e new on|
|00000560| 65 20 69 73 20 64 72 61 | 77 6e 2e 0d 2a 2f 0d 0d |e is dra|wn..*/..|
|00000570| 5a 6f 6f 6d 52 65 63 74 | 20 28 72 31 2c 20 72 32 |ZoomRect| (r1, r2|
|00000580| 29 0d 52 65 63 74 09 72 | 31 2c 20 72 32 3b 0d 0d |).Rect.r|1, r2;..|
|00000590| 7b 0d 72 65 67 69 73 74 | 65 72 20 49 6e 74 65 67 |{.regist|er Integ|
|000005a0| 65 72 09 72 31 6c 65 66 | 74 2c 20 72 31 74 6f 70 |er.r1lef|t, r1top|
|000005b0| 3b 0d 72 65 67 69 73 74 | 65 72 20 49 6e 74 65 67 |;.regist|er Integ|
|000005c0| 65 72 09 6c 2c 20 74 3b | 0d 72 65 67 69 73 74 65 |er.l, t;|.registe|
|000005d0| 72 20 49 6e 74 65 67 65 | 72 09 6a 3b 0d 49 6e 74 |r Intege|r.j;.Int|
|000005e0| 65 67 65 72 09 09 09 09 | 68 44 69 66 66 2c 20 76 |eger....|hDiff, v|
|000005f0| 44 69 66 66 2c 20 77 69 | 64 44 69 66 66 2c 20 68 |Diff, wi|dDiff, h|
|00000600| 74 44 69 66 66 3b 0d 49 | 6e 74 65 67 65 72 09 09 |tDiff;.I|nteger..|
|00000610| 09 09 72 2c 20 62 3b 0d | 49 6e 74 65 67 65 72 09 |..r, b;.|Integer.|
|00000620| 09 09 09 72 57 69 64 2c | 20 72 48 74 3b 0d 0d 0d |...rWid,| rHt;...|
|00000630| 09 72 31 6c 65 66 74 20 | 3d 20 72 31 2e 6c 65 66 |.r1left |= r1.lef|
|00000640| 74 3b 0d 09 72 31 74 6f | 70 20 3d 20 72 31 2e 74 |t;..r1to|p = r1.t|
|00000650| 6f 70 3b 0d 09 68 44 69 | 66 66 20 3d 20 72 32 2e |op;..hDi|ff = r2.|
|00000660| 6c 65 66 74 20 2d 20 72 | 31 6c 65 66 74 3b 09 2f |left - r|1left;./|
|00000670| 2a 20 70 6f 73 69 74 69 | 76 65 20 69 66 20 6d 6f |* positi|ve if mo|
|00000680| 76 69 6e 67 20 74 6f 20 | 72 69 67 68 74 20 2a 2f |ving to |right */|
|00000690| 0d 09 76 44 69 66 66 20 | 3d 20 72 32 2e 74 6f 70 |..vDiff |= r2.top|
|000006a0| 20 2d 20 72 31 74 6f 70 | 3b 09 09 2f 2a 20 70 6f | - r1top|;../* po|
|000006b0| 73 69 74 69 76 65 20 69 | 66 20 6d 6f 76 69 6e 67 |sitive i|f moving|
|000006c0| 20 64 6f 77 6e 20 2a 2f | 0d 09 72 57 69 64 20 3d | down */|..rWid =|
|000006d0| 20 72 31 2e 72 69 67 68 | 74 20 2d 20 72 31 6c 65 | r1.righ|t - r1le|
|000006e0| 66 74 3b 0d 09 72 48 74 | 20 3d 20 72 31 2e 62 6f |ft;..rHt| = r1.bo|
|000006f0| 74 74 6f 6d 20 2d 20 72 | 31 74 6f 70 3b 0d 09 77 |ttom - r|1top;..w|
|00000700| 69 64 44 69 66 66 20 3d | 20 28 72 32 2e 72 69 67 |idDiff =| (r2.rig|
|00000710| 68 74 20 2d 20 72 32 2e | 6c 65 66 74 29 20 2d 20 |ht - r2.|left) - |
|00000720| 72 57 69 64 3b 0d 09 68 | 74 44 69 66 66 20 3d 20 |rWid;..h|tDiff = |
|00000730| 28 72 32 2e 62 6f 74 74 | 6f 6d 20 2d 20 72 32 2e |(r2.bott|om - r2.|
|00000740| 74 6f 70 29 20 2d 20 72 | 48 74 3b 0d 2f 2a 0d 09 |top) - r|Ht;./*..|
|00000750| 6f 72 64 65 72 20 6f 66 | 20 65 76 61 6c 75 61 74 |order of| evaluat|
|00000760| 69 6f 6e 20 69 73 20 69 | 6d 70 6f 72 74 61 6e 74 |ion is i|mportant|
|00000770| 20 69 6e 20 74 68 65 20 | 72 65 63 74 20 63 6f 6f | in the |rect coo|
|00000780| 72 64 69 6e 61 74 65 20 | 63 61 6c 63 75 6c 61 74 |rdinate |calculat|
|00000790| 69 6f 6e 73 2e 0d 09 73 | 69 6e 63 65 20 61 6c 6c |ions...s|ince all|
|000007a0| 20 61 72 69 74 68 6d 65 | 74 69 63 20 69 73 20 69 | arithme|tic is i|
|000007b0| 6e 74 65 67 65 72 2c 20 | 79 6f 75 20 63 61 6e 27 |nteger, |you can'|
|000007c0| 74 20 73 61 76 65 20 74 | 69 6d 65 20 62 79 20 63 |t save t|ime by c|
|000007d0| 61 6c 63 75 6c 61 74 69 | 6e 67 0d 09 6a 2f 7a 6f |alculati|ng..j/zo|
|000007e0| 6f 6d 53 74 65 70 73 20 | 61 6e 64 20 75 73 69 6e |omSteps |and usin|
|000007f0| 67 20 74 68 61 74 20 2d | 20 69 74 27 6c 6c 20 75 |g that -| it'll u|
|00000800| 73 75 61 6c 6c 79 20 62 | 65 20 7a 65 72 6f 2e 0d |sually b|e zero..|
|00000810| 2a 2f 0d 09 66 6f 72 20 | 28 6a 20 3d 20 31 3b 20 |*/..for |(j = 1; |
|00000820| 6a 20 3c 3d 20 7a 6f 6f | 6d 53 74 65 70 73 3b 20 |j <= zoo|mSteps; |
|00000830| 6a 2b 2b 29 0d 09 7b 0d | 09 09 46 72 61 6d 65 52 |j++)..{.|..FrameR|
|00000840| 65 63 74 20 28 26 7a 52 | 65 63 74 5b 6a 2d 31 5d |ect (&zR|ect[j-1]|
|00000850| 29 3b 09 09 09 09 2f 2a | 20 65 72 61 73 65 20 61 |);..../*| erase a|
|00000860| 20 72 65 63 74 61 6e 67 | 6c 65 20 2a 2f 0d 09 09 | rectang|le */...|
|00000870| 6c 20 3d 20 72 31 6c 65 | 66 74 20 2b 20 28 68 44 |l = r1le|ft + (hD|
|00000880| 69 66 66 20 2a 20 6a 29 | 20 2f 20 7a 6f 6f 6d 53 |iff * j)| / zoomS|
|00000890| 74 65 70 73 3b 0d 09 09 | 74 20 3d 20 72 31 74 6f |teps;...|t = r1to|
|000008a0| 70 20 2b 20 28 76 44 69 | 66 66 20 2a 20 6a 29 20 |p + (vDi|ff * j) |
|000008b0| 2f 20 7a 6f 6f 6d 53 74 | 65 70 73 3b 0d 09 09 72 |/ zoomSt|eps;...r|
|000008c0| 20 3d 20 6c 20 2b 20 72 | 57 69 64 20 2b 20 28 77 | = l + r|Wid + (w|
|000008d0| 69 64 44 69 66 66 20 2a | 20 6a 29 20 2f 20 7a 6f |idDiff *| j) / zo|
|000008e0| 6f 6d 53 74 65 70 73 3b | 0d 09 09 62 20 3d 20 74 |omSteps;|...b = t|
|000008f0| 20 2b 20 72 48 74 20 2b | 20 28 68 74 44 69 66 66 | + rHt +| (htDiff|
|00000900| 20 2a 20 6a 29 20 2f 20 | 7a 6f 6f 6d 53 74 65 70 | * j) / |zoomStep|
|00000910| 73 3b 0d 09 09 53 65 74 | 52 65 63 74 20 28 26 7a |s;...Set|Rect (&z|
|00000920| 52 65 63 74 5b 6a 2d 31 | 5d 2c 20 6c 2c 20 74 2c |Rect[j-1|], l, t,|
|00000930| 20 72 2c 20 62 29 3b 0d | 09 09 46 72 61 6d 65 52 | r, b);.|..FrameR|
|00000940| 65 63 74 20 28 26 7a 52 | 65 63 74 5b 6a 2d 31 5d |ect (&zR|ect[j-1]|
|00000950| 29 3b 0d 09 7d 0d 7d 0d | 0d 0d 49 64 6c 65 20 28 |);..}.}.|..Idle (|
|00000960| 29 0d 7b 0d 49 6e 74 65 | 67 65 72 09 69 3b 0d 50 |).{.Inte|ger.i;.P|
|00000970| 6f 69 6e 74 09 70 74 31 | 2c 20 70 74 32 3b 0d 52 |oint.pt1|, pt2;.R|
|00000980| 65 63 74 09 64 73 74 52 | 65 63 74 3b 0d 0d 09 53 |ect.dstR|ect;...S|
|00000990| 65 74 50 74 20 28 26 70 | 74 31 2c 20 52 61 6e 64 |etPt (&p|t1, Rand|
|000009a0| 20 28 73 69 7a 65 58 29 | 2c 20 52 61 6e 64 20 28 | (sizeX)|, Rand (|
|000009b0| 73 69 7a 65 59 29 29 3b | 09 2f 2a 20 67 65 6e 65 |sizeY));|./* gene|
|000009c0| 72 61 74 65 20 6e 65 77 | 20 72 65 63 74 20 2a 2f |rate new| rect */|
|000009d0| 0d 09 53 65 74 50 74 20 | 28 26 70 74 32 2c 20 52 |..SetPt |(&pt2, R|
|000009e0| 61 6e 64 20 28 73 69 7a | 65 58 29 2c 20 52 61 6e |and (siz|eX), Ran|
|000009f0| 64 20 28 73 69 7a 65 59 | 29 29 3b 09 2f 2a 20 61 |d (sizeY|));./* a|
|00000a00| 6e 64 20 7a 6f 6f 6d 20 | 74 6f 20 69 74 20 2a 2f |nd zoom |to it */|
|00000a10| 0d 09 50 74 32 52 65 63 | 74 20 28 70 74 31 2c 20 |..Pt2Rec|t (pt1, |
|00000a20| 70 74 32 2c 20 26 64 73 | 74 52 65 63 74 29 3b 0d |pt2, &ds|tRect);.|
|00000a30| 09 53 65 74 57 69 6e 64 | 43 6c 69 70 20 28 7a 6f |.SetWind|Clip (zo|
|00000a40| 6f 6d 57 69 6e 64 29 3b | 09 09 09 2f 2a 20 64 6f |omWind);|.../* do|
|00000a50| 6e 27 74 20 64 72 61 77 | 20 69 6e 20 72 69 67 68 |n't draw| in righ|
|00000a60| 74 20 65 64 67 65 20 2a | 2f 0d 09 5a 6f 6f 6d 52 |t edge *|/..ZoomR|
|00000a70| 65 63 74 20 28 7a 53 72 | 63 52 65 63 74 2c 20 64 |ect (zSr|cRect, d|
|00000a80| 73 74 52 65 63 74 29 3b | 0d 09 52 65 73 65 74 57 |stRect);|..ResetW|
|00000a90| 69 6e 64 43 6c 69 70 20 | 28 29 3b 0d 09 7a 53 72 |indClip |();..zSr|
|00000aa0| 63 52 65 63 74 20 3d 20 | 64 73 74 52 65 63 74 3b |cRect = |dstRect;|
|00000ab0| 0d 7d 0d 0d 0d 2f 2a 0d | 09 6a 75 73 74 20 70 61 |.}.../*.|.just pa|
|00000ac0| 75 73 65 20 7a 6f 6f 6d | 20 64 69 73 70 6c 61 79 |use zoom| display|
|00000ad0| 20 77 68 69 6c 65 20 6d | 6f 75 73 65 20 64 6f 77 | while m|ouse dow|
|00000ae0| 6e 0d 2a 2f 0d 0d 73 74 | 61 74 69 63 20 4d 6f 75 |n.*/..st|atic Mou|
|00000af0| 73 65 20 28 74 68 65 50 | 74 2c 20 74 2c 20 6d 6f |se (theP|t, t, mo|
|00000b00| 64 73 29 0d 50 6f 69 6e | 74 09 74 68 65 50 74 3b |ds).Poin|t.thePt;|
|00000b10| 0d 4c 6f 6e 67 69 6e 74 | 09 74 3b 0d 49 6e 74 65 |.Longint|.t;.Inte|
|00000b20| 67 65 72 09 6d 6f 64 73 | 3b 0d 0d 7b 0d 09 77 68 |ger.mods|;..{..wh|
|00000b30| 69 6c 65 20 28 53 74 69 | 6c 6c 44 6f 77 6e 20 28 |ile (Sti|llDown (|
|00000b40| 29 29 20 7b 20 20 2f 2a | 20 77 61 69 74 20 75 6e |)) { /*| wait un|
|00000b50| 74 69 6c 20 6d 6f 75 73 | 65 20 62 75 74 74 6f 6e |til mous|e button|
|00000b60| 20 72 65 6c 65 61 73 65 | 64 20 2a 2f 20 7d 0d 7d | release|d */ }.}|
|00000b70| 0d 0d 0d 2f 2a 0d 09 44 | 72 61 77 20 74 68 65 20 |.../*..D|raw the |
|00000b80| 67 72 6f 77 20 62 6f 78 | 20 69 6e 20 77 68 69 74 |grow box| in whit|
|00000b90| 65 20 6f 6e 20 62 6c 61 | 63 6b 2e 20 20 54 68 69 |e on bla|ck. Thi|
|00000ba0| 73 20 69 73 20 74 72 69 | 63 6b 79 3a 20 20 69 66 |s is tri|cky: if|
|00000bb0| 20 74 68 65 20 77 69 6e | 64 6f 77 0d 09 69 73 20 | the win|dow..is |
|00000bc0| 69 6e 61 63 74 69 76 65 | 2c 20 74 68 65 20 67 72 |inactive|, the gr|
|00000bd0| 6f 77 20 62 6f 78 20 77 | 69 6c 6c 20 62 65 20 64 |ow box w|ill be d|
|00000be0| 72 61 77 6e 20 62 6c 61 | 63 6b 2c 20 61 73 20 69 |rawn bla|ck, as i|
|00000bf0| 74 20 73 68 6f 75 6c 64 | 20 62 65 2e 20 20 42 75 |t should| be. Bu|
|00000c00| 74 0d 09 69 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |t..if th|e window|
|00000c10| 20 69 73 20 61 63 74 69 | 76 65 2c 20 74 68 65 20 | is acti|ve, the |
|00000c20| 62 6f 78 20 77 69 6c 6c | 20 53 54 49 4c 4c 20 62 |box will| STILL b|
|00000c30| 65 20 64 72 61 77 6e 20 | 62 6c 61 63 6b 20 6f 6e |e drawn |black on|
|00000c40| 20 77 68 69 74 65 21 0d | 09 53 6f 20 68 61 76 65 | white!.|.So have|
|00000c50| 20 74 6f 20 63 68 65 63 | 6b 20 77 68 65 74 68 65 | to chec|k whethe|
|00000c60| 72 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |r the wi|ndow is |
|00000c70| 61 63 74 69 76 65 20 6f | 72 20 6e 6f 74 2e 20 20 |active o|r not. |
|00000c80| 54 68 65 20 74 65 73 74 | 20 66 6f 72 0d 09 61 63 |The test| for..ac|
|00000c90| 74 69 76 65 20 68 61 73 | 20 74 6f 20 62 65 20 64 |tive has| to be d|
|00000ca0| 6f 6e 65 20 63 61 72 65 | 66 75 6c 6c 79 3a 20 20 |one care|fully: |
|00000cb0| 74 68 65 20 77 69 6e 64 | 6f 77 20 6d 61 6e 61 67 |the wind|ow manag|
|00000cc0| 65 72 20 73 74 6f 72 65 | 73 20 32 35 35 20 61 6e |er store|s 255 an|
|00000cd0| 64 20 30 0d 09 66 6f 72 | 20 74 72 75 65 20 61 6e |d 0..for| true an|
|00000ce0| 64 20 66 61 6c 73 65 2c | 20 6e 6f 74 20 72 65 61 |d false,| not rea|
|00000cf0| 6c 20 62 6f 6f 6c 65 61 | 6e 20 76 61 6c 75 65 73 |l boolea|n values|
|00000d00| 2e 0d 2a 2f 0d 0d 5a 44 | 72 61 77 47 72 6f 77 42 |..*/..ZD|rawGrowB|
|00000d10| 6f 78 20 28 29 0d 7b 0d | 52 65 63 74 09 72 3b 0d |ox ().{.|Rect.r;.|
|00000d20| 0d 09 50 65 6e 4d 6f 64 | 65 20 28 6e 6f 74 50 61 |..PenMod|e (notPa|
|00000d30| 74 43 6f 70 79 29 3b 0d | 09 44 72 61 77 47 72 6f |tCopy);.|.DrawGro|
|00000d40| 77 42 6f 78 20 28 7a 6f | 6f 6d 57 69 6e 64 29 3b |wBox (zo|omWind);|
|00000d50| 0d 09 50 65 6e 4d 6f 64 | 65 20 28 70 61 74 58 6f |..PenMod|e (patXo|
|00000d60| 72 29 3b 0d 09 69 66 20 | 28 20 28 28 57 69 6e 64 |r);..if |( ((Wind|
|00000d70| 6f 77 50 65 65 6b 29 20 | 7a 6f 6f 6d 57 69 6e 64 |owPeek) |zoomWind|
|00000d80| 29 2d 3e 68 69 6c 69 74 | 65 64 29 09 2f 2a 20 67 |)->hilit|ed)./* g|
|00000d90| 72 6f 77 20 62 6f 78 20 | 64 72 61 77 20 69 6e 20 |row box |draw in |
|00000da0| 77 68 69 74 65 20 2a 2f | 0d 09 7b 09 09 09 09 09 |white */|..{.....|
|00000db0| 09 09 09 09 09 2f 2a 20 | 6e 6f 20 6d 61 74 74 65 |...../* |no matte|
|00000dc0| 72 20 77 68 61 74 20 69 | 66 20 61 63 74 69 76 65 |r what i|f active|
|00000dd0| 20 2a 2f 0d 09 09 72 20 | 3d 20 7a 6f 6f 6d 57 69 | */...r |= zoomWi|
|00000de0| 6e 64 2d 3e 70 6f 72 74 | 52 65 63 74 3b 09 09 09 |nd->port|Rect;...|
|00000df0| 09 2f 2a 20 2d 20 69 6e | 76 65 72 74 20 74 6f 20 |./* - in|vert to |
|00000e00| 66 69 78 20 2a 2f 0d 09 | 09 72 2e 6c 65 66 74 20 |fix */..|.r.left |
|00000e10| 3d 20 72 2e 72 69 67 68 | 74 20 2d 20 31 34 3b 0d |= r.righ|t - 14;.|
|00000e20| 09 09 72 2e 74 6f 70 20 | 3d 20 72 2e 62 6f 74 74 |..r.top |= r.bott|
|00000e30| 6f 6d 20 2d 20 31 34 3b | 0d 09 09 49 6e 76 65 72 |om - 14;|...Inver|
|00000e40| 74 52 65 63 74 20 28 26 | 72 29 3b 0d 09 7d 0d 7d |tRect (&|r);..}.}|
|00000e50| 0d 0d 0d 73 74 61 74 69 | 63 20 55 70 64 61 74 65 |...stati|c Update|
|00000e60| 20 28 72 65 73 69 7a 65 | 64 29 0d 42 6f 6f 6c 65 | (resize|d).Boole|
|00000e70| 61 6e 09 72 65 73 69 7a | 65 64 3b 0d 7b 0d 49 6e |an.resiz|ed;.{.In|
|00000e80| 74 65 67 65 72 09 69 3b | 0d 0d 09 45 72 61 73 65 |teger.i;|...Erase|
|00000e90| 52 65 63 74 20 28 26 7a | 6f 6f 6d 57 69 6e 64 2d |Rect (&z|oomWind-|
|00000ea0| 3e 70 6f 72 74 52 65 63 | 74 29 3b 0d 09 5a 44 72 |>portRec|t);..ZDr|
|00000eb0| 61 77 47 72 6f 77 42 6f | 78 20 28 7a 6f 6f 6d 57 |awGrowBo|x (zoomW|
|00000ec0| 69 6e 64 29 3b 0d 09 53 | 65 74 57 69 6e 64 43 6c |ind);..S|etWindCl|
|00000ed0| 69 70 20 28 7a 6f 6f 6d | 57 69 6e 64 29 3b 0d 09 |ip (zoom|Wind);..|
|00000ee0| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|00000ef0| 7a 6f 6f 6d 53 74 65 70 | 73 3b 20 2b 2b 69 29 0d |zoomStep|s; ++i).|
|00000f00| 09 09 46 72 61 6d 65 52 | 65 63 74 20 28 26 7a 52 |..FrameR|ect (&zR|
|00000f10| 65 63 74 5b 69 5d 29 3b | 0d 09 52 65 73 65 74 57 |ect[i]);|..ResetW|
|00000f20| 69 6e 64 43 6c 69 70 20 | 28 7a 6f 6f 6d 57 69 6e |indClip |(zoomWin|
|00000f30| 64 29 3b 0d 09 69 66 20 | 28 72 65 73 69 7a 65 64 |d);..if |(resized|
|00000f40| 29 0d 09 09 53 65 74 5a | 6f 6f 6d 53 69 7a 65 20 |)...SetZ|oomSize |
|00000f50| 28 29 3b 09 09 2f 2a 20 | 61 64 6a 75 73 74 20 74 |();../* |adjust t|
|00000f60| 6f 20 6e 65 77 20 77 69 | 6e 64 6f 77 20 73 69 7a |o new wi|ndow siz|
|00000f70| 65 20 2a 2f 0d 7d 0d 0d | 0d 73 74 61 74 69 63 20 |e */.}..|.static |
|00000f80| 41 63 74 69 76 61 74 65 | 20 28 61 63 74 69 76 65 |Activate| (active|
|00000f90| 29 0d 42 6f 6f 6c 65 61 | 6e 09 61 63 74 69 76 65 |).Boolea|n.active|
|00000fa0| 3b 0d 7b 0d 0d 09 5a 44 | 72 61 77 47 72 6f 77 42 |;.{...ZD|rawGrowB|
|00000fb0| 6f 78 20 28 7a 6f 6f 6d | 57 69 6e 64 29 3b 0d 09 |ox (zoom|Wind);..|
|00000fc0| 69 66 20 28 61 63 74 69 | 76 65 29 0d 09 09 44 69 |if (acti|ve)...Di|
|00000fd0| 73 61 62 6c 65 49 74 65 | 6d 20 28 65 64 69 74 4d |sableIte|m (editM|
|00000fe0| 65 6e 75 2c 20 30 29 3b | 0d 09 65 6c 73 65 0d 09 |enu, 0);|..else..|
|00000ff0| 09 45 6e 61 62 6c 65 49 | 74 65 6d 20 28 65 64 69 |.EnableI|tem (edi|
|00001000| 74 4d 65 6e 75 2c 20 30 | 29 3b 0d 09 44 72 61 77 |tMenu, 0|);..Draw|
|00001010| 4d 65 6e 75 42 61 72 20 | 28 29 3b 0d 7d 0d 0d 0d |MenuBar |();.}...|
|00001020| 73 74 61 74 69 63 20 48 | 61 6c 74 20 28 29 0d 7b |static H|alt ().{|
|00001030| 0d 09 43 6c 6f 73 65 57 | 69 6e 64 6f 77 20 28 7a |..CloseW|indow (z|
|00001040| 6f 6f 6d 57 69 6e 64 29 | 3b 0d 7d 0d 0d 0d 5a 6f |oomWind)|;.}...Zo|
|00001050| 6f 6d 57 69 6e 64 49 6e | 69 74 20 28 29 0d 7b 0d |omWindIn|it ().{.|
|00001060| 49 6e 74 65 67 65 72 09 | 69 3b 0d 0d 09 7a 6f 6f |Integer.|i;...zoo|
|00001070| 6d 57 69 6e 64 20 3d 20 | 47 65 74 4e 65 77 57 69 |mWind = |GetNewWi|
|00001080| 6e 64 6f 77 20 28 7a 6f | 6f 6d 57 69 6e 64 52 65 |ndow (zo|omWindRe|
|00001090| 73 2c 20 6e 69 6c 2c 20 | 2d 31 4c 29 3b 0d 09 28 |s, nil, |-1L);..(|
|000010a0| 76 6f 69 64 29 20 53 6b | 65 6c 57 69 6e 64 6f 77 |void) Sk|elWindow|
|000010b0| 20 28 7a 6f 6f 6d 57 69 | 6e 64 2c 0d 09 09 09 09 | (zoomWi|nd,.....|
|000010c0| 4d 6f 75 73 65 2c 09 09 | 2f 2a 20 70 61 75 73 65 |Mouse,..|/* pause|
|000010d0| 20 77 68 69 6c 65 20 62 | 75 74 74 6f 6e 20 64 6f | while b|utton do|
|000010e0| 77 6e 20 2a 2f 0d 09 09 | 09 09 6e 69 6c 2c 09 09 |wn */...|..nil,..|
|000010f0| 2f 2a 20 69 67 6e 6f 72 | 65 20 6b 65 79 20 63 6c |/* ignor|e key cl|
|00001100| 69 63 6b 73 20 2a 2f 0d | 09 09 09 09 55 70 64 61 |icks */.|....Upda|
|00001110| 74 65 2c 0d 09 09 09 09 | 41 63 74 69 76 61 74 65 |te,.....|Activate|
|00001120| 2c 0d 09 09 09 09 6e 69 | 6c 2c 09 09 2f 2a 20 6e |,.....ni|l,../* n|
|00001130| 6f 20 63 6c 6f 73 65 20 | 70 72 6f 63 20 2a 2f 0d |o close |proc */.|
|00001140| 09 09 09 09 48 61 6c 74 | 2c 09 09 2f 2a 20 77 68 |....Halt|,../* wh|
|00001150| 65 6e 20 64 6f 6e 65 20 | 77 69 74 68 20 77 69 6e |en done |with win|
|00001160| 64 6f 77 20 2a 2f 0d 09 | 09 09 09 49 64 6c 65 2c |dow */..|...Idle,|
|00001170| 09 09 2f 2a 20 64 72 61 | 77 20 61 20 6e 65 77 20 |../* dra|w a new |
|00001180| 73 65 72 69 65 73 20 2a | 2f 0d 09 09 09 09 74 72 |series *|/.....tr|
|00001190| 75 65 29 3b 09 09 2f 2a | 20 72 75 6e 20 6f 6e 6c |ue);../*| run onl|
|000011a0| 79 20 77 68 65 6e 20 66 | 72 6f 6e 74 6d 6f 73 74 |y when f|rontmost|
|000011b0| 20 2a 2f 0d 0d 09 53 65 | 74 5a 6f 6f 6d 53 69 7a | */...Se|tZoomSiz|
|000011c0| 65 20 28 29 3b 0d 09 42 | 61 63 6b 50 61 74 20 28 |e ();..B|ackPat (|
|000011d0| 26 62 6c 61 63 6b 29 3b | 0d 09 50 65 6e 4d 6f 64 |&black);|..PenMod|
|000011e0| 65 20 28 70 61 74 58 6f | 72 29 3b 0d 09 53 65 74 |e (patXo|r);..Set|
|000011f0| 52 65 63 74 20 28 26 7a | 53 72 63 52 65 63 74 2c |Rect (&z|SrcRect,|
|00001200| 20 30 2c 20 30 2c 20 30 | 2c 20 30 29 3b 0d 09 66 | 0, 0, 0|, 0);..f|
|00001210| 6f 72 20 28 69 20 3d 20 | 30 3b 20 69 20 3c 20 7a |or (i = |0; i < z|
|00001220| 6f 6f 6d 53 74 65 70 73 | 3b 20 2b 2b 69 29 09 09 |oomSteps|; ++i)..|
|00001230| 2f 2a 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 72 65 |/* initi|alize re|
|00001240| 63 74 20 61 72 72 61 79 | 20 2a 2f 0d 09 09 7a 52 |ct array| */...zR|
|00001250| 65 63 74 5b 69 5d 20 3d | 20 7a 53 72 63 52 65 63 |ect[i] =| zSrcRec|
|00001260| 74 3b 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |t;.}....|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+